LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-25-2009, 10:14 PM   #1
lijianatusa
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Rep: Reputation: 0
Unhappy auto mount to nfs home dir when user login to nis client


Hello everyone:

Here we go...

1. nis server for authentication
2. nfs server for each user's home dir

Let me put it this way, nisuser1 logon to nisclient*, using the nis server for authentication, if authenticated, the nisclient* will auto mount the nisuser1's home dir from the nfs server. When nisuser1 logout, his home dir will be unmounted automatically. (where nisclient* means any of nisclient machines)

I think I already got the nis part, but for the nfs part, don't know how.
Any suggestion will be really appreciated.

BTW, the nis and nfs servers are both ubuntu 8.10, nisclients are mixed, most of them are FC and RH.

Thank you in advance, I really really need help~~~~~
 
Old 02-25-2009, 10:23 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,104

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
if you can already log in using nis credentials
and mount the /home directory using nfs

add a line in /etc/fstab

server_ip:/home /home nfs defaults 0 0

this will mount /home from the nfs server at boot

if you havn't created the nfs share yet then on the server add an entry to the file /etc/exports
/home (rw,no_root_squash,sync) (or root_squash instead of no_root_squash if you want to deny user root from mounting the nfs)
then make sure the nfs server starts when the server starts
 
Old 02-25-2009, 10:24 PM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What have you tried for the automount side?

Have a look at http://www.linuxhomenetworking.com/w...FS_Automounter and see if that helps, then come back with any specific issues you may have
 
Old 02-25-2009, 11:34 PM   #4
lijianatusa
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frieza View Post
if you can already log in using nis credentials
and mount the /home directory using nfs

add a line in /etc/fstab

server_ip:/home /home nfs defaults 0 0

this will mount /home from the nfs server at boot
Thank you very much for your quick reply, I haven't started the nfs part yet, but are you saying the /home dir will be mounted on the client machine when the client boots up?? Is there a way that the user's home dir will be mounted when the nis user logged in to the client??

Thank you very much.
 
Old 02-25-2009, 11:38 PM   #5
lijianatusa
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by billymayday View Post
What have you tried for the automount side?

Have a look at http://www.linuxhomenetworking.com/w...FS_Automounter and see if that helps, then come back with any specific issues you may have
Hello billymayday:
Thank you very much for your quick reply, I will have a look at the link you give me, I haven't started the nfs part yet, but wondering for my case, is this possible to implement? Basicly I will to mount each single user's home dir (/home/user) for each nisuser, don't know whether I can do that at all??

Thank you very much.
I will get back with questions very soon.....
 
  


Reply

Tags
automount


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to login to NIS client machine(Ubuntu) using NIS login user name crazymoonboy Linux - Server 7 11-27-2009 02:29 AM
Can't nfs mount aix dir on linux client! oracleguy Linux - Enterprise 1 12-21-2005 09:59 AM
unable to mount /home dir in a client machine abhishek124 Linux - Networking 18 06-06-2005 07:57 AM
Mounting NFS User Dir On Login WeNdeL Linux - General 2 07-19-2004 02:46 PM
nis client login - user home dir not fnd synfield Linux - Networking 0 03-27-2003 03:51 AM


All times are GMT -5. The time now is 05:09 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