NFS + NIS madness
Hetz Ben Hamo
hetzbh at gmail.com
Mon Nov 28 21:28:37 IST 2011
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.150 spectrum server.example.com kuku
10.0.0.151 client
10.0.0.150 spectrum server.example.com kuku
127.0.0.1 localhost localhost.localdomain localhost4
localhost4.localdomain4
10.0.0.150 spectrum 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20111128/90963088/attachment.html>
More information about the Linux-il
mailing list