You are not logged in.

#1 2013-11-04 12:26:06

kyogen
Member
From: Germany
Registered: 2010-11-08
Posts: 24
Website

NIS: yptest passes all tests, but user not found?

I'm trying to get this setup working: I want to use NIS and NFS on a client at work, so that my collegues can log in at that client and have their /home-directory mounted from our server. NFS was no problem, I just added the NFS-directory to /etc/fstab. But NIS gives me a headache.

I followed the wiki: install yp-tools and ypbind-mt, enter the nis-domain in /etc/nisdomainname (the command  'ypdomainname <nis-domain>' didn't work for me; the domainname wasn't set after reboot), add the server to /etc/yp.conf and start the rpcbind and ypbind services. I also updated the /etc/nsswitch.conf:

# Begin /etc/nsswitch.conf

passwd: files nis
group: files nis
shadow: files nis

publickey: files

hosts: files dns myhostname
networks: files dns

protocols: files
services: files
ethers: files
rpc: files

netgroup: files

# End /etc/nsswitch.conf

The 'yptest'-utility passes all tests successfully and the services start without problem. journalctl gives no errors. But when I try to log in as a NIS-user in the VT, I get 'login incorrect'. But I can do a 'su NIS-user' from root and it works. Interesting fact: Even though I can su to that user, I can't start a graphical environment (I installed cinnamon). The journalctl fills up with

cinnamon-session[462]: dconf-CRITICAL: unable to create directory '/run/user/0/dconf': Keine Berechtigung.  dconf will not work properly.

This looks to me as if the user is mapped to uid 0? I also tried changing the 'passwd', 'group' and 'shadow' entries in /etc/nsswitch.conf to 'compat', but then I can't even do the 'su NIS-user' anymore. It gives me 'user not found'.
Thanks for any hints.

Offline

Board footer

Powered by FluxBB