http://blog.csdn.net/leo20686802/article/details/6860248
1、添加使用者,首先用adduser指令添加一個普通使用者,指令如下:
#adduser tommy
#passwd tommy
2、root權限賦予
方法一: 修改 /etc/sudoers 檔案,找到下面一行,把前面的注釋(#)去掉
## allows people in group wheel to run all commands
%wheel all=(all) all
然後修改使用者,使其屬于root組(wheel),指令如下:
#usermod -g root tommy