Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-13-2013, 08:24 PM
|
#1
|
Member
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125
Rep:
|
[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.
|
|
|
08-13-2013, 10:10 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
|
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.
|
|
|
08-14-2013, 06:53 AM
|
#3
|
Member
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125
Original Poster
Rep:
|
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! 
|
|
|
08-16-2013, 04:41 PM
|
#4
|
Member
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125
Original Poster
Rep:
|
That was the ticket! Got autofs all setup on my client machine and it mounts like a charm when I need it!
Thanks again!
|
|
|
08-16-2013, 07:10 PM
|
#5
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
|
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.
|
|
|
All times are GMT -5. The time now is 05:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|