Samba, cifs, and local/remote uids/gids





What's conventional wisdom regarding uids and gids of users on Samba
servers and on [Linux] client machines wishing to connect to CIFS shares
on that server?

Options seem to be:

1) Try to synchronise allocation of uid and gid between client and server
(e.g. user foo gets same numeric IDs on both).

2) Force 'local' ownership of remote mounts through the use of uid= and
gid= params.

The former seems a bit of an admin headache. The latter seems a lot
more flexible (and is what I've always done in the past), but the docs say
that uid= and gid= are ignored for CIFS mounts (even though observation
seems to suggest otherwise, but in theory option 2 will stop working
sometime for cifs mounts).

Just curious what others are doing...

cheers

Jules

.



Relevant Pages

  • Re: [opensuse] OOo - my docs are read only?
    ... I'm having troubles with office docs that live on a SAMBA share. ... Managing from your end means you have to have the same UID and GID on ... Allowing the samba server to manage it means that your login to that ...
    (SuSE)
  • Anybody else missing smbfs support in FC5?
    ... smbfs is deprecated and not supported anymore in Fedora Core 5. ... On the server I have a shared directory owned by 'srvuser'. ... The uid and gid options allows me to have the whole shared tree to be ... This is sadly no more possible with CIFS. ...
    (linux.redhat)
  • [fedora] UIDs and GIDs
    ... for instance if i have a user with UID and GID of 515/515 and then change it ... another reason is that i'm going to install a new server and move users from ... though this may be a reasonable time to clean up users that is no longer in ...
    (Fedora)
  • Re: Samba, cifs, and local/remote uids/gids
    ... That is to say that from the servers point of view any thing that is created or accessed across a given connection just about always has the uid / gid of the credentials that were used to establish the connection, no matter who is actually using the connection. ... Thus the server sees the uid / gid of the person on the other end very clearly all the time. ...
    (comp.os.linux.misc)
  • Re: NFS and ownership
    ... GID on either may conflict with existing IDs. ... OK, so to synchronise the users on client and server, I used: ... which changed the UID to match the server. ... Exports entry: ...
    (comp.os.linux.misc)