[nzlug] Maintaining owners /groups over network shares
Craig Box
craig at dubculture.co.nz
Tue May 6 01:20:21 NZST 2008
>
> 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.
How many users are you trying to maintain this for?
If the answer is 'one', Samba lets you specify which uid/gid should own all
the remote files with the uid=XXX and gid=XXX parameters. You could also
possibly set the gid to something that exists locally and grant permission
that way.
man mount.smbfs.
Not nearly as messy as uid mapping, but obviously not as powerful either.
Craig
More information about the NZLUG
mailing list