Gentoo Archives: gentoo-amd64

From: Sami Samhuri <sami@××××××××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] nfs mount has now become read-only
Date: Wed, 05 Apr 2006 02:13:46
Message-Id: 44332745.8080409@no-eff-eks.com
In Reply to: Re: [gentoo-amd64] nfs mount has now become read-only by Mark Knecht
1 Mark Knecht wrote:
2 > Thanks Sami!
3
4 Glad to be of help.
5
6 > On 4/3/06, Sami Samhuri <sami@××××××××××.com> wrote:
7 >> Mark Knecht wrote:
8 [...]
9 >> When you see numbers such as 501 in the directory listing that means the user or
10 >> group who had that user id is not found in /etc/passwd or /etc/group.
11 >
12 > OK, that means it's using the passwd file local to that specific
13 > machine then.
14
15 Exactly.
16
17 >> The user id's on all the machines you use with NFS have to be the same. I found
18 >> this in the HP-UX documentation via google:
19 >>
20 >> >>>> From: http://docs.hp.com/en/5991-1153/ch02s01.html#bghdjbfa
21 [...]
22 > OK, I think you've hit on a potential problem here. Problem is what is
23 > the best way to address this on machines that have been running for a
24 > long time? Can I safely edit /etc/passwd and /etc/group and then do
25 > chown -R commands to change the ownership of files on the systems
26 > after I make all the IDs and groups identical?
27
28 As long as all of the files in eg. /home/mark are owned by mark then I don't
29 think you'll have a problem. I've done this without anything bad happening to my
30 box, but I won't make you any promises. ;)
31
32 I didn't know about the useful anonuid and anongid options that Conway
33 mentioned. I think if you set that up as he described that will be best (I'm
34 planning to do the same now). If you add any additional boxes later you won't
35 have to worry about uids matching.
36 --
37 gentoo-amd64@g.o mailing list