[COLUG] Can't write to mounted SMB Shares

Jim jep200404 at columbus.rr.com
Wed Aug 23 19:51:20 EDT 2006


David McGlone wrote:

> I am having ... trouble ... to write to my SMB shares that I have mounted.

> Here's a look at fstab:
> //192.168.2.3/d /media/d  cifs 
> credentials=/home/david/.smbpasswd,uid=david,gid=david,rw 0 0
> //192.168.2.3/e /media/e        cifs    
> credentials=/home/david/.smbpasswd,uid=david,gid=david,rw 0 0 c

> I know I will be able to write to them if "I" and not root mounts the shares, 
> but if it's not possible for me to mount them as user, the how can I get 
> write permissions as user with a root mount?

I'm not familiar with the credentials option. 
I execute the mount command as root, 
to access a share under another name 
with local uid and gid with even another identity. 

mount -t smbfs -o ro,username=dmglone,password=intergalactic,uid=david,gid=david //foobar/pub ~dmglone/mnt

> How can I write to the shares mounted?

mount -t smbfs -o rw,username=dmg,password=intergalactic,uid=david,gid=david //foobar/pub ~dmglone/mnt

I would play around with the command line mount command as root 
under I get it working, then automate it in fstab. 

Jim



More information about the colug432 mailing list