SMB mount file permissions - FC6
Hello all,
Please can someone help me mount a windows share into my file system, and get the permissions right? I'm running FC6. I have a NAS which only supports SMB file shareing. So far, I've used mount -t cifs //192.168.1.5/storage //mnt/Rookery/ -o username=guest,password="",file_mode=0777,dir_mode=0777 which works fine when I'm logged in as root. However, when I switch to my user account (Dave) I can browse the share and access the files, but any new files/directories I create are all read only. What am I doing wrong? Eventually I want to edit fstab so that the machine mounts the share when it boots. All help is appreciated. Many thanks ABA |
Using umask=000 instead of the file_mode and dir_mode should do it.
Brian |
Brian,
Thanks for the advice, but unfortunatly it didn't work ;( I've tried using mount -t cifs //192.168.1.5/storage //mnt/Rookery/ -o username=guest,password="",umask=000 This workd#s fine when I'm logged in as root, but my user account can only create read-only files. Is there something else I'm missing? Thanks ABA |
SOLVED (but I don't know why!)
I googled this up on fedoraforums.org and copied it to fstab, then issued mount -a and everything works OK. //192.168.1.5/storage /mnt/Rookery cifs auto,user,username=guest,password="",uid=500,gid=500,file_mode=0777,dir_mode=0777,rw 0 0 If someone has the time, please can someone explain what this means? Thanks ABA |
All times are GMT -5. The time now is 09:25 AM. |