NFS + NIS madness
Oron Peled
oron at actcom.co.il
Mon Nov 28 23:31:38 IST 2011
On Monday, 28 בNovember 2011 21:28:37 Hetz Ben Hamo wrote:
> ...
> # su - vic
> id: cannot find name for user ID 500
> id: cannot find name for user ID 500
> [I have no name!@client ~]$
>
> $ id
> uid=500 gid=500(vic) groups=500(vic)
> context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
> ...
> but still ...
>
> $ ls -la
> total 32
> drwx------ 2 500 vic 4096 Nov 28 2011 .
> drwxr-xr-x 4 root root 4096 Nov 25 20:06 ..
> -rw------- 1 500 vic 343 Nov 28 2011 .bash_history
> -rw-r--r-- 1 500 vic 18 May 26 2011 .bash_logout
> -rw-r--r-- 1 500 vic 176 May 26 2011 .bash_profile
> -rw-r--r-- 1 500 vic 124 May 26 2011 .bashrc
> -rw------- 1 500 vic 602 Nov 28 2011 .viminfo
> *[I have no name*!@client ~]$
Interesting. Looks like name->uid translation works, but uid->name don't.
Maybe (for some unknown reason) the reverse NIS map is not there.
Let's debug it:
1. First at the NIS level -- The 'passwd' map is a shortcut to
the 'passwd.byname' map, let's test the 'passwd.byuid' map:
* Enumerate:
ypcat passwd.byuid
* Match:
ypmatch 500 passwd.byuid
2. If 1. is OK, test at the NSS level:
getent passwd 500
Both of these work?
--
Oron Peled Voice: +972-4-8228492
oron at actcom.co.il http://users.actcom.co.il/~oron
If it's there and you can see it, it's REAL
If it's there and you can't see it, it's TRANSPARENT
If it's not there and you can see it, it's VIRTUAL
If it's not there and you can't see it, it's GONE!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20111128/5c97cf5d/attachment-0001.html>
More information about the Linux-il
mailing list