日期:2014-05-16  浏览次数:20588 次

linux种普通用户加入ROOT组的方法

linux种普通用户加入ROOT组的方法:
第1种方法:修改/etc/passwd文件(不推荐)
第2种方法:usermod ? -G ? 组帐号,.. ? 用户帐号

===============================================

?

passwd文件格式一般如下:
guest:!:100:100::/home/guest:
nobody:!:4294967294:4294967295::/:

?

如上就应该将guest ? 用户第2个100改为0;nobody用户的4294967295改为0;
则guest,nobody用户都为root组的用户。