?
Solved

Nis under Redhat 9

Posted on 2005-03-11
5
Medium Priority
?
329 Views
Last Modified: 2010-03-18
Hi Guys,
I have setup an NIS server under redhat 9.0. I can log on to the nodes which have a local linux installation but no local account. My problem is, when i log on the nodes without a local accoutn i am dropped into bash$.

I know its because of the user home directory unavailable on the local machine. How can I have a mount of home directories on all the machines. Should I user NFS to export the home directories to all the nodes and modify their local fstab files to mount it.

Thanks
Walter
0
Comment
Question by:wfaleiro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:Anonymouslemming
ID: 13544600
You could use automount (man automount) to automatically mount users' home directories.  This way the directory is only mounted when the user logs in.
0
 
LVL 1

Author Comment

by:wfaleiro
ID: 13549951
Hi Al,
Following is the procedure that I used.

Configured NFS server on my NIS mater.
following are my entried in the exports file.

/home   (ro)
/opt/sge (rw)


I configured Automount on the client node.
The auto.master contains

 /misc  /etc/auto.misc  --timeout=60


and the auto.misc contains

myproject  -rw,soft,intr,rsize=8192,wsize=8192   172.16.20.51:/opt/sge

But my /misc directory still shows empty.

Thanks
Walter



0
 
LVL 1

Author Comment

by:wfaleiro
ID: 13550656
Hi Al,
Have managed to mount home directories from remote systems when the user does not exist on the local system. But am still stuck with other directories.

Regards
Walter
0
 
LVL 1

Author Comment

by:wfaleiro
ID: 13550860
Hi Al,
could not manage much today

This is my auto.master file


# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
# /misc /etc/auto.misc  --timeout=60
# /users        /etc/auto.users --timeout=60

/home   /etc/auto.home  --timeout=60
/opt    /etc/auto.opt  --timeout=60


this is my auto.home file

*       -fstype=nfs,rw,nousid,soft      172.16.20.51:/home/&


and this is my auto.opt file.
*       -fstype=nfs,rw,nousid,soft      172.16.20.51:/opt/&

I only get the home directory mounted here, but not the opt directory.

Thanks
Walter

0
 
LVL 5

Accepted Solution

by:
Anonymouslemming earned 100 total points
ID: 13553739
I would only really use automount for home directories personally. These are only required when the relevant user is logged on, so automount makes sense.

However something like /opt is nearly always required, so I would just permanently mount this from /etc/fstab.
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question