V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
ithelloworld
V2EX  ›  程序员

以root身份安装的sudo,其它用户使用时为什么要输入密码?

  •  
  •   ithelloworld · Mar 4, 2013 · 3959 views
    This topic created in 4803 days ago, the information mentioned may be changed or developed.
    系统环境:Cent OS 5.8

    $ su -
    (输入root密码)
    # yum install sodu
    # su - www
    $ sudo make install
    [sudo] password for www:

    实际上www用户是没有密码的(SSH登录),这是怎么回事?
    5 replies    1970-01-01 08:00:00 +08:00
    aysi
        1
    aysi  
       Mar 4, 2013   ❤️ 1
    /etc/sudoers
    swulling
        2
    swulling  
       Mar 4, 2013
    sudo 不要输密码和把root权限提供出去有什么区别么。。。
    thedevil5032
        3
    thedevil5032  
       Mar 4, 2013 via iPad
    $ visudo

    具体情况问谷歌
    ithelloworld
        4
    ithelloworld  
    OP
       Mar 4, 2013
    暂时用1楼解法。谢谢其他人回复。
    TankyWoo
        5
    TankyWoo  
       Mar 5, 2013
    @ithelloworld 三楼给的命令也就是修改/etc/sudoers这个文件
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   999 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 20:13 · PVG 04:13 · LAX 13:13 · JFK 16:13
    ♥ Do have faith in what you're doing.