LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mount smb Share with read/write permissions (https://www.linuxquestions.org/questions/linux-hardware-18/mount-smb-share-with-read-write-permissions-531991/)

gjblackford 02-24-2007 09:33 AM

Mount smb Share with read/write permissions
 
Hi,

I am trying to mount a share from my Buffalo Network drive to Linux with Read/Write Access, I have installed smb and setup the mount point in fstab, but when any user apart from root tries to access it, they only have read access, after doing some searching on the Net, I found something about having to mount it with a GUID, but I am not sure how to do this, can someone please help.

I am mounting it in fstab with the following syntax (I tried adding the rw parameter to the end, but obviously it has made no difference).

Code:

//192.168.1.200/Data /media/Data smbfs username=myuser,password=mypwd,rw 0 0

Thanks,


Gavin,

jschiwal 02-24-2007 09:37 AM

Try using the uid and gid options. See man mount for details.

gjblackford 02-25-2007 09:49 AM

Thanks,

I looked at the man page, but still not clear on what I need to do, I tried adding uid=username,gid=group to the end of the option in fstab, but this has made no difference.

gjblackford 02-26-2007 12:14 PM

Hi,

Found the solution all I needed to do was add the dmask=777, fmask=777 to the entries in fstab and I can write to the share with any user.

Code:

//192.168.1.200/Data /media/Data smbfs username=myuser,password=mypwd,dmask=777,fmask=777 0 0
Only problem now is whenever I write a file I get an error message saying "could not change permissions for <filename?", can idea how to resolve this

Thanks,



Gavin,


All times are GMT -5. The time now is 10:41 PM.