I'm using ldap as for user information and nfs for mounting the users home directory upon login. Here's what I did for the server.
1. I edidted the /etc/exports file and added the following lines
/home *(rw,sync)
2. I then typed in the following commands
Code:
[root@homer tmp]# exportfs -a
[root@homer tmp]# chkconfig nfslocik on
[root@homer tmp]# chkconfig nfs on
[root@homer tmp]# chkconfig portmap on
[root@homer tmp]# service portmap start
Starting portmapper: [ OK ]
[root@homer tmp]# service nfslock start
Starting NFS statd: [ OK ]
[root@homer tmp]# service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
Client Configuration
1. I typed in the following commands
Code:
[root@smallfry tmp]# chkconfig nfslock on
[root@smallfry tmp]# chkconfig netfs on
[root@smallfry tmp]# chkconfig portmap on
[root@smallfry tmp]# service portmap start
Starting portmapper: [ OK ]
[root@smallfry tmp]# service netfs start
Mounting other filesystems: [ OK ]
[root@smallfry tmp]# service nfslock start
Starting NFS statd: [ OK ]
[root@smallfry tmp]# mv /home /home.save
[root@smallfry tmp]# mkdir /home
[root@smallfry tmp]# ll/
(series of dots followed by users)
I then tested to see if I could mount the new home directory
Code:
[root@smallfry tmp]# mount 192.168.0.1:/home /home/
[root@smallfry tmp]# ls/home
(not to sure what ls/home returned)
[root@smallfry tmp]# umount /home
I then edited the autofs file /etc/auto.master
Code:
#/etc/auto.master
/home /etc/auto.home --timeout 600
Then edited the /etc/auto.home
Code:
#/etc/auto.home
* -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp \
192.168.0.1:/home/&
To finish off i used the following commands
Code:
[root@smallfry tmp]# chkconfig autofs on
[root@smallfry tmp]# service autofs restart
Stopping automount: [ OK ]
Starting automount: [ OK ]
My nfs config came from
http://www.linuxhomenetworking.com/w...onfiguring_NIS. Would it be better if I continued setting up a nis system. If so how would I go about removing ldap.Is this all corect. Is there a file or so I could provide you guys with that will help you correct the problem. Thanks so much for your help