|
你修改/etc/sudoers配置之后就不需要密码了
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
informix rh81=/sbin/init
在sudoers开头那里不是有用法跟例子么,比如我这里添加了informix 那行,那么在informix用户用sudo 执行/sbin/init的时候就不用密码了 |
评分
-
1
查看全部评分
-
|