Kam Salisbury on 19 Aug 2005 02:16:56 -0000 |
-----Original Message----- >From: "Adam Zion"<azion@cceb.med.upenn.edu> >Sent: 8/18/05 7:07:31 PM >To: "plug@lists.phillylinux.org"<plug@lists.phillylinux.org> >Subject: [PLUG] Problems mounting linux samba share as read-write *from* alinux box > > I have two Mandrake linux boxes, one named Calvin, and the other >Hobbes. The share is defined on Calvin as the following: > >[Documents] > comment = Adam's Documents > path = /home/adam/Documents > browseable = yes > writeable = yes > read only = no > valid users = adam > directory mask = 0777 > > All files set in the directory /home/adam/Documents are set at 777, >owned by the user and group adam. When I mount this share from Hobbes, >using the following command: > >mount -t smbfs //calvin/Documents /mnt/calvin -o username=adam,password=* > > After I do this, I have read-only permission when logged onto Hobbes as >adam, but write permission when I su in as root. When I check ownership >of all the files and directories in this directory (while logged onto >Hobbes), ls -la tells me that root owns all the files, hence my >inability to write to them as adam. > > Any idea why mount is changing the effective permissions on this share? >What concept am I missing here? User adam on Hobbes needs read-write >access to this directory (the idea is that this Calvin is my NAS box). >User adam exists as a samba user on Calvin, with the same password as I >use for the same user on Hobbes. > >-- > >Adam Zion, MCSE+I >IT Support Specialist Senior >Center for Clinical Epidemiology and Biostatistics >Blockley Hall 103D > >Borger King: Have it our way. Yours is irrelevant. I use the same method for my NAS box as well. You are missing uid=username in the -o portion. Using uid or gid sets the user or group for the mount when mounting via smbfs. Kam Salisbury http://salisburyfamily.us ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|