NFS + NIS madness

NFS + NIS madness

Valery Reznic valery_reznic at yahoo.com
Mon Nov 28 21:38:23 IST 2011


You can run this 'ls -la' under strace and may be you'll see sometging of iterest.

Valery.




>________________________________
> From: Hetz Ben Hamo <hetzbh at gmail.com>
>To: Oron Peled <oron at actcom.co.il> 
>Cc: linux-il at cs.huji.ac.il 
>Sent: Monday, November 28, 2011 9:28 PM
>Subject: Re: NFS + NIS madness
> 
>
>Hi,
>Thanks for your explanation.
>
>
>I did what you wrote before I got your email at least 20 times. I followed your email and re-checked everything. Everything works great until I actually login with the user. See this (doing it as root):
>
>
>
>
># ypcat passwd
>vic:$6$FcNMjbbl$8wGzWhtEK9P0.WdoqE78xI9VDzmaH1wTF.2vax9VERW3uiqhytNjXXzVccCjnWRxV7ApHL.JibC0Ar4spM6In1:500:500:Vicky the kitten!:/home/vic:/bin/bash
>
>
># ypmatch vic passwd
>vic:$6$FcNMjbbl$8wGzWhtEK9P0.WdoqE78xI9VDzmaH1wTF.2vax9VERW3uiqhytNjXXzVccCjnWRxV7ApHL.JibC0Ar4spM6In1:500:500:Vicky the kitten!:/home/vic:/bin/bash
>
>
># ypcat hosts
>10.0.0.150spectrum server.example.com kuku
>10.0.0.151client
>10.0.0.150spectrum server.example.com kuku
>127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
>10.0.0.150spectrum server.example.com kuku
>127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
>(I probably messed up something there, nevermind..)
>
>
>And then ...
>
>
># 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
>
>
>After disabling SELinux (Hate it!) it's a bit better:
>
>
>$ id
>uid=500 gid=500(vic) groups=500(vic)
>
>
>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 ~]$ 
>
>
>I pasted online the configurations of the client:
>
>
>network - http://fpaste.org/SoLt/
>yp.conf - http://fpaste.org/kfc6/
>nsswitch.conf - http://fpaste.org/MXrw/
>
>
>If you have any other ideas, I'll be happy to hear.
>
>
>Thank you,
>Hetz
>_______________________________________________
>Linux-il mailing list
>Linux-il at cs.huji.ac.il
>http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20111128/dc1ea3b7/attachment.html>


More information about the Linux-il mailing list