[nzlug] Maintaining owners /groups over network shares

Paul Lowman paul_lowman at xtra.co.nz
Mon May 5 14:47:15 NZST 2008


OK all you server gurus how do you deal with the following situation ...

I have some directories / files owned by user A and belonging to group B.
These directories / files are shared by samba.

When the share is mounted on a client machine the owner / group change 
to different names. This is because the UID and GID are assigned to 
different owner / group names. ie: the UID / GID are maintained across 
the share but map to different users / groups. The result being that the 
shared files no longer have the necessary permissions on the client machine.

My question is what is the recommended way of dealing with this scenario 
such that the client machine has the same permissions as the server.

I thought that if SUID or SGID were set on the files then all would be 
well but it does not seem to do the trick.

Any contributions welcome ...

Paul Lowman



More information about the NZLUG mailing list