Hi, As you can see, all of them (from root) works perfectly: [root@client ~]# ypcat passwd.byuid vic:$6$FcNMjbbl$8wGzWhtEK9P0.WdoqE78xI9VDzmaH1wTF.2vax9VERW3uiqhytNjXXzVccCjnWRxV7ApHL.JibC0Ar4spM6In1:500:500:Vicky the kitten!:/home/vic:/bin/bash [root@client ~]# ypmatch 500 passwd.byuid vic:$6$FcNMjbbl$8wGzWhtEK9P0.WdoqE78xI9VDzmaH1wTF.2vax9VERW3uiqhytNjXXzVccCjnWRxV7ApHL.JibC0Ar4spM6In1:500:500:Vicky the kitten!:/home/vic:/bin/bash [root@client ~]# getent passwd 500 vic:$6$FcNMjbbl$8wGzWhtEK9P0.WdoqE78xI9VDzmaH1wTF.2vax9VERW3uiqhytNjXXzVccCjnWRxV7ApHL.JibC0Ar4spM6In1:500:500:Vicky the kitten!:/home/vic:/bin/bash
only when I do su - vic or login as vic, then it happens.. Thanks, Hetz On Mon, Nov 28, 2011 at 11:31 PM, Oron Peled <o...@actcom.co.il> wrote: > ** > > 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 > > o...@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! > > > -- *חץ בן חמו חץ-ביז *השכרה ואירוח של שרתים פיזיים מעוניין להשתמש בשרותים שחסומים לגולש הישראלי? Hulu? NetFlix? Pandora? Google Voice? אם כן, היכנס לכאן <http://vps.net.bz/?p=406>.
_______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il