LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 08-07-2010, 12:56 AM   #1
maheshp86
LQ Newbie
 
Registered: Jun 2010
Location: mumbai
Posts: 22

Rep: Reputation: 0
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
 
Old 08-07-2010, 01:33 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
I don't see a problem here... what's actually wrong??
 
Old 08-07-2010, 03:36 AM   #3
maheshp86
LQ Newbie
 
Registered: Jun 2010
Location: mumbai
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
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/

Last edited by maheshp86; 08-07-2010 at 03:37 AM.
 
Old 08-07-2010, 11:29 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
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.
 
  


Reply

Tags
nfs, nis


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about sudoers in NIS environment ksri07091983 Linux - Newbie 10 02-22-2011 02:58 PM
nfs server doubt sridhar.bodike Linux - Newbie 5 06-07-2010 07:02 AM
nfs doubt sridhar.bodike Linux - Newbie 5 06-07-2010 06:43 AM
plzz help ...........Doubt about NFS...??? shishirkotkar Linux - Software 4 06-20-2008 01:14 AM
NFS doubt ... wjleon Linux - Networking 3 11-28-2005 05:32 PM


All times are GMT -5. The time now is 08:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration