chmod -R a+x /home/user/文件夹 注:表示将整个目录与其中的文件和子目录的权限都设置为a+x的权限 转载于:https://www.cnblogs.com/liwentao1091/p/4583466.html