LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-20-2013, 10:40 PM   #1
luxaterna
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
Smile Multiple NFS mount using autofs


Hi Guys...

I got questions to ask.
Is it possible to have multiple nfs mount points using autofs on the client machine?
the exports is from the same nfs server. It meant for different users to log in the machine to have their respective home folder mounted. So how do i go about that?
 
Old 04-21-2013, 12:28 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
just to clear things up, you are having multiple users on the same workstation and you want to setup different autofs for each user? is that correct?

That should not be to hard as the mount point can be owned by each user.

ex:

/home/user1/mount_point
/home/user2/mount_point
/home/user3/mount_point
etc...

then you can create the autofs for each point as each user will only have access to their mount point you should be good to go.
 
Old 04-21-2013, 12:56 AM   #3
luxaterna
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
yes but different mount point too..
like
/home/usr1
/home2/usr2
/home3/usr3

do you think it possible?
 
Old 04-21-2013, 01:26 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
yes that is exactly what i stated. my example is different mount points all of them. remember the fully qualified path in linux is exactly that. a different location within the system.
 
Old 04-21-2013, 08:14 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,368

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
If the intended path is the same on the server & client systems (for home dirs this is normal), the you can use this format
Code:
*    server:/export/home/&
http://linux.die.net/man/5/autofs
 
1 members found this post helpful.
  


Reply



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
[SOLVED] NFS + autofs /home mount stubbornly mounting as "nobody" ellakano Linux - Server 12 02-12-2013 04:34 PM
Autofs+NFS repeated mount attempts guna_pmk Linux - Server 3 04-07-2011 04:17 AM
NFS mount over ssh using autofs ciphyre Linux - Server 0 11-25-2008 01:08 PM
Manual NFS Mount works / AutoFS will not! gerhardb Red Hat 0 03-21-2007 12:05 PM
nfs mount with fstab vs autofs rrich100 Linux - Networking 2 11-13-2003 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration