Linux su 命令的管理

时间:2014-08-27 11:08:38   收藏:0   阅读:217

一、su权限管理

非root账户能否su到root,通过/etc/pam.d/su管理

# Uncomment the following line to require a user to be in the "wheel" group.
# auth            required        pam_wheel.so use_uid

取消注释之后,所有其他用户只有在wheel组的才能su到root


二、更改组的命令

usermod -g wheel username

-g 更改用户登陆时所在的组

-G 添加其他不是登陆首选的组

/etc/login.defs

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!