strange nfs conversation
Stephen R Laniel
steve at laniels.org
Fri Sep 23 02:08:29 UTC 2005
On Thu, Sep 22, 2005 at 06:57:23PM -0700, Holiday wrote:
> Huh? 500.500? 500 does not appear as a uid or guid in my user listings.
I confess that I skimmed your post, because a big red flag
went off when I saw this. Here's the moral:
If you see weird UIDs in your permissions, there is a
username mismatch between the computers.
On one of those machines, there is a userID 500. UID 500
owns the directory. Then on the other machine, you don't
have a UID 500, but you're trying to open a directory owned
by UID 500. You can't.
So: check /etc/passwd for a UID 500 -- do something like
grep 500 /etc/passwd
Do this on both machines.
I also skimmed the bits about root having trouble accessing
NFS shares. See the manpage for exports and check out the
parts about 'root squash'. Root on machine A can't access
root-only files on machine B unless you explicitly turn off
root squashing. This is A Good Thing.
What you need is NIS. This will keep the UIDs in sync on
both your machines. The alternative is to manually copy
/etc/passwd, /etc/group and so forth between machines. I
find the latter irritating, but I know people who are fine
with it.
--
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050922/ea5bffea/attachment.sig>
More information about the ubuntu-users
mailing list