centos 用户相关命令

1、创建新用户 test

adduser test

2、设置密码

[root@localhost~]# passwd test
Changing password for user test.
New password:             # 输入密码
Retype new password:      # 再次输入密码
passwd: all authentication tokens updated successfully.

3、更改目录所有者命令

chown -R 用户名称 目录名称

4、杀死某个用户全部的进程

pkill -u test

5、更改目录权限命令

chmod -R 755 目录名称