* David Powell <moondrake@optusnet.com.au> [050201 21:11]: > At the moment I can read all the files in my NFS mounted directory but I > can't edit them. The owner and group of the files seems correct > (david/david on both machines) but when I "ls -l" the files in my > mounted directory on the client, I see 1002/1002 instead of david/david > (for user/group respectively). Yes, that looks like different UIDs on you two computers. > I read in a previous thread that for NFS the UID and GID needs to be > exactly the same - but how do I change this? Chmod chgrp etc don't seem > to do the trick... You could add a new user, but I don't think that would be an elegant sollution. I would change one users UID so it matches to the UID on the other computer (edit /etc/passwd, /etc/shadow and /etc/group should do it, takte that the UIDs are still unique on both computers). After that I you need to change the owner of all files owned by the old user-id. Something like "find / -uid $OLD_UID -print0 | xargs -0 chown $NEW_UID" should do that fine. Do it for the GID too. Not very elegant either, but not a that bad dirty little hack ,as creating new users. Yours sincerely, Alexander -- http://learn.to/quote/ http://www.catb.org/~esr/faqs/smart-questions.html
Attachment:
signature.asc
Description: Digital signature