Hi Versa, Pleased it's working for you
Some successes ....NIS account logins using the automounter and user homedirs from SME ...... here we go:
On SME:
Make sure you have nfs-utils-0.3.3-5 installed (get it from
ftp://fr.rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/ or a mirror)
After installing add the following to /etc/exports:
/home/e-smith/files/users 192.168.100.117(rw) 192.168.100.118(rw)
(name your clients or use a wildcard)
chkconfig nfs on
/etc/init.d/nfs start
create /var/yp/push and fill with:
grep "/home/e-smith/files/users" /etc/passwd | awk -F: ' {print $1":"$2":"$3":"$4":"$5":\/home\/"$1":\/bin\/bash"}' > /etc/passwd.dist
make
chmod 755 /var/yp/push
Edit /var/yp/Makefile and change the line which says:
PASSWD = $(YPPWDDIR)/passwd
to
PASSWD = $(YPPWDDIR)/passwd.dist
When you run /var/yp/push only the user entries from /etc/passwd are crunched into an alternative passwd file with corrected homedir paths for the client automounters to use. Also we don't want to distribute SME's root password to everyone do we ?
Run /var/yp/push
On SuSE:
Make the following the only entries in /etc/auto.master
/home auto.home
Create /etc/auto.home and add the following
* -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid 192.168.100.40:/home/e-smith/files/users/&/home
Replacing the IP address for your SME's address (as usual)
Go into yast and in the "NIS Client" section enable the automounter
Restart ypbind (rcypbind restart).
I had some trouble with running in and out of NIS bind status and found it was down to nscd caching the previous status settings. Probably best to turn this off until it's all working (rcnscd stop)
OK, try and "su - sme-user" from the commandline. If it works, log out of KDE and try KDE with that user. If things aren't working you'll find your environment screwed so just stop the automounter and ypbind to recover (rcautofs stop:rcypbind stop)
I may have missed something in this list as I wrote it after the event. Comments Please!
Damian