I'm mounting a Windows Samba share on my Linux machine (SUSE 11) using the following.

mount -t cifs -o username=myname,password=12345 // /share/smb

It works fine except it has the following permissions

drwxr-xr-x 1 root root 4096 Nov 10 19:35 smb

If I try to change the permissions with

sudo chmod 777 /share/smb

I get permission denied even as root. How can I get around this so that non root users can access the share?


On the Windows side the share has full access to all users

1 Answer 1


I found the solution, I had to set the permissions during the mount not after

mount -t cifs -o username=myname,password=12345,dir_mode=0777,file_mode=0777 // /share/smb

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .