如何修改Linux文件系统的权限?

上传一个扩展或模板文件夹,建议修改Linux系统的权限以便能够正常访问。网站的权限设置值建议如下: file 644, folder 755 ,用户和用户组分别是 apache : apache 方法一:putty登录命令行方式(推荐)

~# chown -R apache.apache /data/wwwroot/default
~# find /data/wwwroot/default -type d -exec chmod 755 {} \;
~# find /data/wwwroot/default -type f -exec chmod 644 {} \;

方法二:WinSCP右键修改,参考:使用WinSCP设置文件夹权限

Last updated