NFS mount home directory

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers NFS mount home directory
# 1  
Old 03-01-2002
Error NFS mount home directory

Hello All,

I have a question that I think I have the answer to but I'm not sure. All the information I get kind of dance around it. Well, my question is if you have NFS running, automount running, with auto_master and auto_home on a server. If a user logs in form cleint machine that has auto_home running will it mount the user home dir locate donthe server? Note not running NIS or NIS+ and the client machine does not have user in the passwd or shadow file. All the material I have read states that this can be done, but I don't know if they are referring to the fact that you need NIS of NIS+ running. This is for a Solaris 8 OS. I geuss the missing part for me is if it is possible how does it authenicate the user. THANKSSmilie
# 2  
Old 03-01-2002
You kinda lost me here, so I may be misunderstanding your question. But here goes....

If you want clientsystem to automatically mount directories then clientsystem must have the automounter running. The serversystem must have exported, or to use Sun's language, shared the stuff to be mounted. It is not relevant if serversystem is running the automounter, but it needs the NFS server daemons.

NIS and NIS+ are not required. But the user is then in local passwd and shadow files and needs to enter a password if you gave him one. Once he signs on he gets a uid and several gid's. These control what files he can access. This includes his home directory even if it is automounted. So the user will need an identical account on serversystem and this account will need to own the home directory.
# 3  
Old 03-01-2002

You got it. But to clear it up better. I wanted to know if the server had a user account export and shared. Will the same user on a client machine have to have an entry in the client passwd and shadow also?
How would this be done? Would you have to have the same auto_master and auto_home files on all the machine (server and clients)? Would that mean that on all the machine that this user would want to use, he/she would have to have an identical passwd, shadow entry in the local machine? If I don't make scense forgive me. I will try to explain from another angle. THANKS
# 4  
Old 03-01-2002
Well the home directory at least must be owned by the right uid. The the user on clientsystem had a uid of, say, 123, you really could just chown it to that numeric uid. Everything would work, however this situation bums me out. Therefore I would always ensure that the account exists on serversystem.

You can simply run the adduser program on both clientsys and serversys. Most folks would automate this somewhat. Other people copy passwd, shadow, and group around. Some people use rsync to automate the copy. Keeping 3 files in sync across several systems in a minor problem and there are dozens of solutions.

In the scenario we are describing, seversystem doesn't even need automounter running as I mentioned. If it doesn't need automounter running, it also wouldn't need any map file laying around. In fact, if /home is the location where these directories physically reside, it would be crucial that automounter not try to mount stuff there.

And bear in mind that you can't have it both ways. If you're not running NIS, then no entry in nsswitch.conf can specify NIS, including automount. So you can't use + in any maps. You have to modify the maps to be direct maps or something.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

2. UNIX for Dummies Questions & Answers

Mount NFS

Hi I have 2 servers, one is running on SunOS SPARC and the other is running on GNU Linux. Since my Linux is very poor I am not sure on how to mount a NFS from SunOS to Gnu Linux. Please help! FS at Host Server: root@rocux4 # ls -ld /data/PCFILES/GTPROD/DWHFILES.NEW drwxrwxrwx 4 nobody ... (6 Replies)
Discussion started by: hedkandi
6 Replies

3. IP Networking

Can't see home folder on one NFS mount but can in another mount on another share

Hello, I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;) Below are the configs /etc/exports on host /home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies

4. Solaris

home dir mount issue

Hi all, I have to mount my home directory in one box, by default everyone's home directory will mount in all unix boxes which we have. But we have unmounted these home directories from some boxes to keep the data as safe. So for automation purpose i need my home directory only in those boxes to... (2 Replies)
Discussion started by: raghu.iv85
2 Replies

5. OS X (Apple)

NFS Mount

Hello! Im trying to mount an nfs share. But got a bit of a problem. The problem im having is that i try to mount The problem is that the is owned by root. I know i can make a mount point - > /pub/home But that means i have to do... (1 Reply)
Discussion started by: dozy
1 Replies

6. UNIX for Dummies Questions & Answers

NFS mount

I have a NAS server that needs to have the share mounted on a unix server. I am not that familiar with NFS mounts....any help on what I have to do on the UNIX box...thanks! (7 Replies)
Discussion started by: andrewd
7 Replies

7. UNIX for Dummies Questions & Answers

mount -o llock -F nfs vs mount -F nfs

Hi, We encountered NFS issue (solaris) especially running on Oracle application. Problem such as forms hang when close button is click, concurrent job shows running status all time. Understand we need to use mount -o llock -F nfs instead of mount -F nfs to eliminate? this problem.. Can... (1 Reply)
Discussion started by: KhawHL
1 Replies

8. UNIX for Advanced & Expert Users

Problem: Automounting Home directory for nis & nfs configuration doesn't work

Hi all, First of all, i am so sorry about my bad level in English writing. I have some problem in linux and i hope the experts of this forum to help me if they have enough time to reply to me. I have a scenario of configuring NIS and NFS in Redhat Linux environment such that user can login... (0 Replies)
Discussion started by: pioneer
0 Replies

9. Filesystems, Disks and Memory

NFS mount

Hi All, Can any one help in Mounting remote filesystems with NFS? Thanks in advance. Regards, Suresh. (4 Replies)
Discussion started by: srvaka1
4 Replies
Login or Register to Ask a Question