mount.cifs Windows共享目录权限755问题
2021-07-15 18:17
阅读:653
标签:mount cifs
针对CentOS 6.5系统。通过linux 的mount命令挂载windows下的共享目录,挂载后目录权限为755,普通用户没有权限写入。
可以通过file_mode 和dir_mode 来设置权限,覆盖默认的755权限。
通过linux的 man mount.cifs 简单的了解下。
file_mode=arg If the server does not support the CIFS Unix extensions this overrides the default file mode. dir_mode=arg If the server does not support the CIFS Unix extensions this overrides the default mode for directories.
示例:
mount -t cifs -o username=ftp,password=3dmedcom,rw,dir_mode=0777,file_mode=0777 //10.10.172.91/GENEbackup /GENEbackup #这样看到的文件目录权限都为777 mount -t cifs -o username=ftp,password=3dmedcom //10.10.172.91/GENEbackup /GENEbackup #经测试,可以读写。这样看到的文件目录权限都为755
mount.cifs Windows共享目录权限755问题
标签:mount cifs
原文地址:http://blog.51cto.com/dengaosky/2107593
下一篇:api接口开发跨域注意事项和设置
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:mount.cifs Windows共享目录权限755问题
文章链接:http://soscw.com/index.php/essay/105681.html
文章标题:mount.cifs Windows共享目录权限755问题
文章链接:http://soscw.com/index.php/essay/105681.html
评论
亲,登录后才可以留言!