Linux - 用户权限配置

文件权限
- 用户权限配置
- 更改文件权限
chmod u=r demo.txtchmod a=r demo.txt
- 更改文件夹权限,要递归处理,注意是大写的R
chmod -R u=r t1
- 开启该文件的全部权限
chmod 777 mysql_data_bak.shchmod 777 *.sh
- 目录授权
chmod +x /root

chmod u=r demo.txtchmod a=r demo.txtchmod -R u=r t1chmod 777 mysql_data_bak.shchmod 777 *.shchmod +x /root