useradd user 增加一个用户,增加好后,得设置密码,否则不能登录;
passwd user 设置user的密码;
usermod -G root user 让user加入root组;
usermod -g root user 让user只属于root组;
相关的几个文件:
/etc/group
/etc/passwd
/etc/shadow
useradd user 增加一个用户,增加好后,得设置密码,否则不能登录;
passwd user 设置user的密码;
usermod -G root user 让user加入root组;
usermod -g root user 让user只属于root组;
相关的几个文件:
/etc/group
/etc/passwd
/etc/shadow