[wellylug] Linux as a Samba client.

Jamie Baddeley wellylug at vpc.co.nz
Sun May 29 22:10:03 NZST 2005


On Sun, 2005-05-29 at 22:03 +1200, jumbophut wrote:
> On 5/29/05, Jethro Carr wrote:
> > hi all,
> > 
> > I'm setting up a linux pc for my brother, and need some help with samba.
> > 
> > 
> > I've added the following entry to /etc/fstab:
> > //jessie/music  /mnt/jessie-music       smbfs   username=mitchell,password=<password>   0       0
> > 
> > It works, but only for root. The normal user can't mount or write it.
> > 
> > //jessie/music  /mnt/jessie-music       smbfs   username=mitchell,password=<password>   0       0
> 
> You could try something like:
> 
> username=mitchell,password=<password>,uid=your_brother's_uid,umask=000
> 
> That should make your brother the owner (as far as the client is
> concerned) of all the files on //jessie/music.

if you are careful and make sure the numeric uid values match does that
work?

you might want to add gid too.

Is there any way to assert ownership of the shared files of a given
source UID, and honour the ownership of others? i.e where shared owner =
jim then new owner = jessie else any others are unchanged?


jamie




More information about the wellylug mailing list