LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   doubt on nfs and nis (https://www.linuxquestions.org/questions/linux-server-73/doubt-on-nfs-and-nis-824715/)

maheshp86 08-07-2010 12:56 AM

doubt on nfs and nis
 
hi all


i have configured NFS and NIS master server in my RHEL5 system.


in NIS server i exported /home directory..

and in my client i added the following for nfs

1.#vi /etc/auto.master
and added the following
/home /etc/auto.home --timeout 600
then

2.#vi /etc/auto.home
and added the following
* -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp \
10.10.40.242:/home/&


=========================

in my NFS/NIS Master server i added a nisuser by

useradd -g users nismahi ( is it is NECESSARY to having different uid and gid for nis?? )


and now my question is

from my client i can able to login through
nisuser "nismahi"


but when i checked the file permission of /home/nismahi on my NIS server it is shownig like this..


[root@node1 ~]# ls -ld /home/nismahi/
drwx------ 2 nismahi users 4096 Aug 18 23:54 /home/nismahi/


AS from its permission how nfs can automount(as automount will happen through a single ll or cd command) that directory during login

(i exported /home with root_squash )


pls guide me with a valuable advice

acid_kewpie 08-07-2010 01:33 AM

I don't see a problem here... what's actually wrong??

maheshp86 08-07-2010 03:36 AM

Quote:

Originally Posted by acid_kewpie (Post 4058571)
I don't see a problem here... what's actually wrong??


as automount happened through a simple ll or cd command ,
how it is get mounted during login ..

as directory permission does not allow it .
#ls -ld /home/nismahi/

drwx------ 2 nismahi users 4096 Aug 18 23:54 /home/nismahi/

acid_kewpie 08-07-2010 11:29 AM

Nope, still no idea what you're asking about. The directories don't look interesting to me, if you've logged in as that user then it does have access to that location. And it'll be mounted just fine as the login process naturally access files in that location.


All times are GMT -5. The time now is 11:20 AM.