在公司开发过程中,经常会遇到在同一编译器中为不同用户创建权限等需求。 在这里粘贴适当的代码
用户useradd-m username-ppassword-d/data/home/gengkaiyuusername、password分别填写用户名、密码
-m表示添加用户,然后为该用户的权限创建文件夹
-d表示文件夹的目录
删除用户及其文件夹
更改userdel -r yyl用户密码
passwd username当前用户直接为登录用户运行passwd即可,如果在修改过程中显示
passwd : authenticationtokenmanipulationerror只需检查/etc/passwd目录中是否有项目权限