KDE or GNOME graphical login manager hates my NIS configured automount directories
The Network Information Service or NIS is Sun Microsystems' "Yellow Pages" (YP) client-server directory service protocol for distributing system configuration data such as user and host names between computers on a computer network.
When students try to login using GNOME or KDE desktop graphical login manager it dump back error:
Cannot load user preferences from /home/username
User home directory is on NFS server and it will be mounted only after login procedure. NIS based automount works under text based login. But, when it comes to graphical login; it will dump back above error.
To fix this error you need to edit /etc/nsswitch.conf file and force automount to use NIS database:
# vi /etc/nsswitch.conf
Set automount as follows:
automount: nis files
Now Linux graphical login manager will accept logins without any error.
E-mail this to a friend
Printable version
You may also be interested in other helpful articles:
- Tip of the day: Automount your Linux samba host into a Windows environment
- Running X window graphical application over ssh session
- Linux: Display a login banner for Gnome (GDM) Desktop
- FreeBSD Gnome Installation howto
- Shells scripting - How to create GUI dialogs for GNOME and KDE?
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


Wonderful, I was searching the net for many hours.. Worked flawlessly.