LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NIS, NFS, autofs and /home folder question (https://www.linuxquestions.org/questions/linux-networking-3/nis-nfs-autofs-and-home-folder-question-477315/)

ramram29 08-25-2006 12:19 PM

NIS, NFS, autofs and /home folder question
 
I got NIS, NFS and autofs to work. Everything works well. However, I would like to make the local workstation's /home folder become automounted during login. Has anobody done this before?

ph0b0s 08-25-2006 04:56 PM

Quote:

Originally Posted by ramram29
I got NIS, NFS and autofs to work. Everything works well. However, I would like to make the local workstation's /home folder become automounted during login. Has anobody done this before?

You mean to have it mounted at boottime? Add it to /etc/fstab
like this :

192.168.2.151:/home/user/ /mnt/devos-spk nfs user, rsize=8192 , wsize=8192,soft 0 0

(ALL ON ONE LINE)

where - 192.168.2.151:/home/user is the path to the share o/t host
- /mnt/devos-spk is where it is to be mounted o/t client
- nfs is... wel for nfs ;)
- user means user can mount and unmount the filesystem

You might also need to add 'auto' between user and rsize on some
systems.

Good luck!

ramram29 08-25-2006 08:26 PM

I don't want to mount it at boot time. I want it to automatically mount when the user tries to access his/her home folder. Then after 1 minute of inactivity to dismount and wait for the next request. In otherwords, I'm trying to setup autofs on the home directory located on another server.

I don't think this could be done because I don't see examples of it anywhere. I guess if you want to server remote home directories then you have to mount the directory at startup.

How can you automount remote home folders? By automount I mean using the service autofs, not /etc/fstab.


All times are GMT -5. The time now is 01:10 PM.