[nzlug] Maintaining owners /groups over network shares
Daniel Pittman
daniel at rimspace.net
Mon May 5 17:06:04 NZST 2008
Nevyn <nevynh at gmail.com> writes:
> 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.
That would be "some other ... distribution technology", even if a pretty
inefficient one for small sites let alone big ones. ;)
Regards,
Daniel
More information about the NZLUG
mailing list