LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-13-2013, 08:24 PM   #1
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Rep: Reputation: 16
[SOLVED] NFS Does Not Automount When Switching Users On Client


Hi all.

Have a Centos 6.4 server hosting an NFS share. The client is a laptop running OpenSuSE 12.3 with two users accounts on it (my wife and I). If I boot the laptop into my account (KDE desktop), the NFS share is mounted and ready for me. If I log out and log into my wife's account (Gnome desktop), the share is not mounted. If I then do "mount-a" as root while logged into her account, the share mounts and can be accessed without issue.

How do I make that share automount when logging onto another user account?

EDIT: ok, just tried booting straight into my wife's account (Gnome) and the share is mounted. I logged off and then onto my account and the share is still there. So it only does not work when booting to my account, then logging off and onto my wife's account. Only then do I need "mount -a"

tl;dr
Boot into my KDE account: NFS share is mounted
Log off and then log into my wife's Gnome account: NFS share not mounted
Boot into my wife's Gnome account: NFS share mounted
Log off and then log into my account: NFS share mounted

Last edited by AudioMechanic; 08-16-2013 at 04:42 PM.
 
Old 08-13-2013, 10:10 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
you never stated how you have the nfs mounted? id look into autofs and set that up for both accounts that way you dont have to worry about fstab handling the mounts and permissions going all wonky.
 
Old 08-14-2013, 06:53 AM   #3
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Original Poster
Rep: Reputation: 16
Thanks for the reply!

Sorry about not mentioning my mount method. It's through fstab. I'll give autofs a look. Thanks for your help!
 
Old 08-16-2013, 04:41 PM   #4
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Original Poster
Rep: Reputation: 16
That was the ticket! Got autofs all setup on my client machine and it mounts like a charm when I need it!

Thanks again!
 
Old 08-16-2013, 07:10 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
glad to hear it. yeah i really like autofs for this type of work. its great and the new replacement with systemd is looking even better. in short it combines the use of fstab with autofs so you can drop the extra service (autofs) and just use the standard fstab for automagically mounting/umounting of shares.

sadly there just is not a lot of documentation out there for it yet. soon i hope as RHEL 7 should go live by the end of the year. im sure a lot more documentation will come out once RHEL 7 is out of beta.
 
  


Reply


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
NFS export mounts on client, but normal users can't get into the directory gusblake Linux - Server 1 07-01-2010 09:01 PM
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
automount nfs HA myutopia Linux - Networking 0 11-28-2006 11:06 AM
About NFS automount mahabooba Solaris / OpenSolaris 9 06-30-2006 12:31 AM
switching off automount salparadise Linux - Newbie 1 03-04-2003 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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