Re: NFS and ownership
- From: Handover Phist <jason@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 11 Feb 2007 19:32:41 GMT
On 2007-02-11, Dan Espen <daneNO@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Handover Phist <jason@xxxxxxxxxxxxxxxxxxxxxx> writes:
On 2007-02-11, Uli Wachowitz <uli@xxxxxxxxxxxxxx> wrote:
On 2007-02-11, Handover Phist <jason@xxxxxxxxxxxxxxxxxxxxxx> wrote:
What I need to do, but dont know how yet, is to match uid and gid on andThe easiest way to do this is to use the options of 'useradd' and
'groupadd' to ensure that the IDs are the same on every machine.
Also take a look at 'usermod', 'goupmod' and related tools.
Also you might consider using 'ldap'. But this might be overkill. In
smaller nets the first mentioned method should be absolutely sufficient.
HTH
Uli
The first option, while possibly the best, presents this problem: Both
machines have been used by me for a few years now, and changing UID and
GID on either may conflict with existing [UG]IDs. Is there a way to map
this through NFS?
I find command run by root going the the filesystem
will fix all the UIDs and GIDs. Check the man page.
That's what our admins do for users that have left.
OK, so to synchronise the users on client and server, I used:
# usermod -u 1000 jason
which changed the UID to match the server. I remounted the NFS export
and still have ro perms instead of rw.
Exports entry (server):
/home/jason 192.168.1.0/24(sync,rw,no_root_squash)
fstab entry (client)(line wrap):
192.168.1.2:/home/jason /home/jason/server nfs
owner,rw,rsize=8192,wsize=8192,timeo=14
--
// Minor lesson: don't *** about with something you don't fully understand
-- the dosdoom source code
http://www.websterscafe.com
.
- Follow-Ups:
- Re: NFS and ownership
- From: Keith Keller
- Re: NFS and ownership
- From: left_coast
- Re: NFS and ownership
- References:
- NFS and ownership
- From: Handover Phist
- Re: NFS and ownership
- From: Uli Wachowitz
- Re: NFS and ownership
- From: Handover Phist
- Re: NFS and ownership
- From: Dan Espen
- NFS and ownership
- Prev by Date: Re: Newest distribution
- Next by Date: Basic VMWare Question
- Previous by thread: Re: NFS and ownership
- Next by thread: Re: NFS and ownership
- Index(es):