AUTOFS not working in NIS
Hi All,
I have all CENTOS 5.5 boxes. This is my scenario. Code:
192.168.1.10 box1.test.com NIS and NFS SERVER Code:
[root@box2 ~]# showmount -e 192.168.1.10 Home dirs. under /home are automounting perfectly BUT home dirs. under /nishome/network1 are not automounting. Code:
[root@box2 ~]# hostname Code:
[root@box2 ~]# grep home /etc/auto.master Quote:
Code:
[root@box2 ~]# mount -t nfs 192.168.1.10:/nishome/network1 /nishome Any help, how to dig it further. I worked fairly on NIS, but never used any other dir. other than /home for automounting. Apologies, if this post became a little longer. Actually, I have tried to give the maximum information. |
Hi vikas027
assuming oyur nis configuration is correct, can you change passwd entries in box2 Code:
nisuser1:$1$jejlU3CC$GYEhZl8LHGdAUqn7FXaPu0:800:800::/nishome/network1/nisuser1:/bin/bash Code:
nisuser1:$1$jejlU3CC$GYEhZl8LHGdAUqn7FXaPu0:800:800::/nishome/nisuser1:/bin/bash |
Hi Fortez,
Yes, I can change passwords sitting on NIS cients. Code:
[root@box2 ~]# su - nisuser1 |
Hi vikas027
in a nis architecture password is changed with yppasswd... However i mean not to change pasword, but to change home directory from /nishome/network1/nisuser1(2) to /nishome/nisuser1(2) |
Quote:
I was able to it there, but could not configure their NIS setup at my place. |
I think you are confusing nis configuration and nfs configuration
I do not understand your RHCE reference, but i think that your nfs configuration is wrong independently from nis use and RHCE exam experience If you read your nfs maps Quote:
- when on client you type cd /home/vikas , you are mounting /home/vikas directoty that is on nfs server - when on client you type cd /nishome/network1/nisuser1 , you are mounting /nishome/network1/network1/nisuser1 directoty on nfs server; this directory with double network1 do not exist on nfs server |
See I want this, which works well with NFS
Code:
[root@box2 ~]# mount -t nfs 192.168.1.10:/nishome/network1 /nishome |
Afer this manual mount, can you make
Quote:
|
No.
Code:
[root@box2 ~]# mount -t nfs 192.168.1.10:/nishome/network1 /nishome |
It confirms that you have to change home directory in /etc/passwd file as i have suggested before....
So: 1) if you want that /nishome/nisuser1/ on client matchs /nishome/network1/nisuser1 on nfs server your autofs maps are correct and you have to change your /etc/passwd file in Quote:
2) if you want that /nishome/network1/nisuser1 on client matchs exactly /nishome/network1/nisuser1 on nfs server your /etc/passwd file is correct but you have to create network1 directory under nishome on client and to change your auto.master map in Quote:
|
Hi Fortez,
I do agree about your points, but I am still confused how RHCE server builders did this. |
Assuming you have clear nfs configuration as it was without nis, please can you post:
- nsswitch.conf on nis/nfs client - auto.master,auto.home,auto.nishome on nis/nfs server - the output of ls -l /var/yp/your_nis_domain on nis/nfs server |
Quote:
I has same problem cited above. My nsswitch.conf is: Code:
# Code:
* -fstype=nfs, rw, nolock 10.50.2.154:/export/home/& Code:
/home /etc/auto.home |
All times are GMT -5. The time now is 01:44 AM. |