• 请不要在回答技术问题时复制粘贴 AI 生成的内容
ithelloworld
V2EX  ›  程序员

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

  •  
  •   ithelloworld · Mar 4, 2013 · 4452 views
    This topic created in 5001 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
    aysi
    Mar 4, 2013❤️1
    1
    /etc/sudoers
    swulling
    swulling
    Mar 4, 2013
    2
    sudo 不要输密码和把root权限提供出去有什么区别么。。。
    thedevil5032
    thedevil5032
    Mar 4, 2013 via iPad
    3
    $ visudo

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