Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Networking
Reload this Page Need some help with autofs
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Networking Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Reply
 
Thread Tools Display Modes
Old 05-15-2008   #1 (permalink)
EABonney
Just Joined!
 
Join Date: Jun 2007
Posts: 23
Need some help with autofs

I am trying to do some automounting of NFS shares when users login. I currently have it working so that when the user logs in on any of the machines on my network, their home directory gets mounted from our server. That is fine and working how I want it to.

Now what I would like to do is setup some additional mount points under their home directory depending on what group they are in.

Example:
I have two groups on our server that everyone falls into (Kids and Adults). Kids are allowed to read most NFS exports but they can't delete files. Adults are given full access to all NFS exports. Also I have some NFS exports that need to go out to the Adults like financial folders that the Kids do not get access to.

So using our Music directory as an example. I want this folder to be mounted under /home/user/Music for each user as they login. I have tried all sorts of items but I can't get it working.

In my auto.master file I have the following:
/home /etc/auto.home

In auto.home I have this:
* ipaddressofserver:/home/&

I finally figured out that putting anything after this line doesn't work as autofs stops reading this file once it matches a valid mount point with the * key. I can't put the Music mount before this line as the home directory hasn't been mounted yet.

I have also tried creating a different map file and putting it under the /home map in auto.master, but I can't figure out how to set that up.

Doing this give me nothing at all, not even off root:
/Music /etc/auto.music

Then:
* ipaddressofserver:/Music

I have googled all last night and most of this morning. I found some variables that are supposed to expand to say user or home when used, but I can't seem to get them to work either. I have tried both /home/$USER/Music and /$HOME/Music and I still get nothing.

Thanks for any input or suggestions.

-Eric
EABonney is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 11:37 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0