Mount.cifs Windows shared directory permissions 755 issue

Source: Internet
Author: User

For CentOS 6.5 systems.


The Linux Mount command mounts the shared directory under Windows, the directory permission is 755 after mount, and the normal user does not have permission to write.



Permissions can be set through File_mode and Dir_mode, overriding the default 755 permissions.


Through the Linux man mount.cifs a simple understanding.

File_mode=arg If The server does is not a support for 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 dire Ctories.

Example:

Mount-t Cifs-o username=ftp,password=3dmedcom,rw,dir_mode=0777,file_mode=0777//10.10.172.91/genebackup/genebacku P #这样看到的文件目录权限都为777mount-T cifs-o username=ftp,password=3dmedcom//10.10.172.91/genebackup/genebackup #经测试, can be read Write. This allows you to see the file directory permissions are 755


Mount.cifs Windows shared directory permissions 755 issue

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.