[nzlug] Maintaining owners /groups over network shares
Nevyn
nevynh at gmail.com
Mon May 5 16:44:11 NZST 2008
On Mon, May 5, 2008 at 3:25 PM, Daniel Pittman <daniel at rimspace.net> wrote:
> Paul Lowman <paul_lowman at xtra.co.nz> writes:
>
> > 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.
>
> Two options: turn of the 'Unix Extensions' in the Samba server, or
> ensure that your UID/GID mappings are stable across the network using
> LDAP, NIS or some other directory service / distribution technology.
Alternatively you could specifically create a group and user with id's
specified by yourself on all the machines you're sharing with. While
this could be used, it should only be considered (and not for very
long) if you're only working with a couple of machines.
It's a quick and dirty fix which would not at all translate well in a
even slightly bigger environment.
It's a bit like using localised name resolution rather than a DNS.
More information about the NZLUG
mailing list