首页 > 系统服务 > 详细

Linux su 命令的管理

时间:2014-08-27 11:08:38      阅读:426      评论:0      收藏:0      [点我收藏+]

一、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

Linux su 命令的管理

原文:http://bananalighter.blog.51cto.com/6386339/1545506

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!