LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-03-2014, 01:57 PM   #1
pjm9
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Rep: Reputation: Disabled
[Autofs] Configuration help


Hi there,

I'm trying to use autofs for automount user's home folder when need it, but i have a problem. My system is something like this:
Code:
/home/administrators
/home/users
Where inside folder administrators/users are various users and my configuration files are:

/etc/auto.master
Code:
/home/administrators      /etc/auto.home
/home/users      /etc/auto.home
and in /etc/auto.users
Code:
*    -fstype=nfs      nfs_server_ip:$HOME
And this works, but what i wanted was something like this:
/etc/auto.master
Code:
/home      /etc/auto.home
I wanted to put all the subfolders with the Asterisk (*) to read all the sub-folders, for example, with this configuration I expected to mount something like this: /home/administrators/user

Instead I get a mount in: /home/administrators of nfs_server_ip:/home/administrators/user

And if I do:
/etc/auto.users
Code:
*/$USER    -fstype=nfs      nfs_server_ip:$HOME
it won't work. It is possible to have a workaround and have an regular expression working?

Note: I'm using CentOS

Thanks for support
 
Old 09-03-2014, 08:46 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,905

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
...i wanted was something like this:
/etc/auto.master
Code:

/home /etc/auto.home
Then I think you need to specify with something like this
Code:
* rw,hard,intr,rsize=8192,wsize=8192  server:/home/&
 
Old 09-04-2014, 03:58 AM   #3
pjm9
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
Then I think you need to specify with something like this
Code:
* rw,hard,intr,rsize=8192,wsize=8192  server:/home/&
Thanks for the reply ferrari.

But if I put the asterisk (*) it will only match que second folder, if my path is: /home/administrators/pjm, the asterisk (*) will be replaced by: /home/administrators instead of /home/administrators/pjm
 
Old 09-04-2014, 06:03 AM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,905

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
I can probably only point you to searching online for 'NFS Services Administrator's Guide HP-UX 11i version 3'. This document explains the use widcards in AutoFS maps. (Ref page 65). Good luck.
 
  


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
autofs configuration travalon Linux - Newbie 18 05-12-2013 12:14 PM
RHEL 6 autofs configuration aalinare Linux - General 6 02-14-2013 01:23 AM
autofs configuration ramadas88 Linux - Server 8 09-21-2010 04:50 AM
Autofs/Automount configuration problems Ccielogs Linux - Server 2 09-11-2009 02:21 AM
Is there a way to include winbind/ntp/autofs configuration in redhat kickstart file? wirelessgirl21 Linux - Newbie 1 06-14-2009 07:58 AM

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

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

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