1 添加一个用户loutest:sudo adduser loutest
设置密码,注意:设置/输入密码光标并不动
2 创建文件/opt/forloutest:sudo touch /opt/forloutest
3 设置用户loutest可以读写/opt/forloutest:sudo chmod u+rw opt/forloutest或者sudo chmod 706 /opt/forloutest
时间: 2024-10-06 00:21:07
1 添加一个用户loutest:sudo adduser loutest
设置密码,注意:设置/输入密码光标并不动
2 创建文件/opt/forloutest:sudo touch /opt/forloutest
3 设置用户loutest可以读写/opt/forloutest:sudo chmod u+rw opt/forloutest或者sudo chmod 706 /opt/forloutest