Skip to main content

Troubleshooting Samba / Cifs share Permissions

Cifs share doesn't preserve permission configuration in smb.conf (755 instead of 777)

There are two options that can help 'save the day': dir_mode and file_mode. (placeholders in green italics) 
Setting both these to 0777 gives full permissions that the host smb server allows for the user in question.

 

 

sudo mount -t cifs -o rw,username=user,yourusername,dir_mode=0777,file_mode=0777 //server/shareyour/share/directory ~/mnt/folder

local/mount/directory