CentOS6创建用户并授权--桌面版
1.登录root用户 右键打开终端: 2.创建新用户 [root@localhost Desktop]# adduser Linging 并设置密码: [root@localhost Desktop]# passwd Linging Changing password for user Linging. New password: BAD PASSWORD: it is too simplistic/systematic BAD PASSWORD: is too simple Retype new password: passwd: all authentication tokens updated successfully. 提示密码太简单,不管它,继续输入(密码是不可见的,直接输入)。 3.授权 个人用户的权限只可以在本home下有完整权限,其他目录需要授权。 而经常需要root用户的权限,这时候sudo可以化身为root来操作。 sudo命令的授权管理是在sudoers文件里的。 可以看看sudoers在什么位置: [root@localhost Desktop]# whereis sudoers sudoers: /etc/sudoers.d /etc/sudoers /usr/libexec/sudoers.so /usr/share /man /man5/sudoers