V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ithelloworld
V2EX  ›  程序员

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

  •  
  •   ithelloworld · 2013-03-04 16:56:56 +08:00 · 3217 次点击
    这是一个创建于 4068 天前的主题,其中的信息可能已经有所发展或是发生改变。
    系统环境:Cent OS 5.8

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

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

    具体情况问谷歌
    ithelloworld
        4
    ithelloworld  
    OP
       2013-03-04 17:43:32 +08:00
    暂时用1楼解法。谢谢其他人回复。
    TankyWoo
        5
    TankyWoo  
       2013-03-05 00:41:58 +08:00
    @ithelloworld 三楼给的命令也就是修改/etc/sudoers这个文件
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   977 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 21:57 · PVG 05:57 · LAX 14:57 · JFK 17:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.