Solved

How to AutoFS a group folder under /home ????

Posted on 2007-03-20
5
362 Views
Last Modified: 2013-12-16
Howdy!

I've got a simple question for a few of you Linux gods out there:

I'm doing a simple NFS share off a Fedora Core 6 based Linux file server.

My /etc/exports currently looks like this:

/home *(rw,sync)
/home/group *(rw,sync)

I've created two autofs files called auto.home and auto.group:

auto.home has one line:

*  -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp  lfs1:/home:&

auto.group has one line:

*  -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp  lfs1:/home/group

My auto.master is the typical default one with:

/misc /etc/auto.misc
/net -hosts
/home /etc/auto.home --timeout 600
/group /etc/auto.group --timeout 600
+auto.master

The UIDs and GIDs are the same on all systems.

On the file server, I have one 800GB /home mount that is where all the home directories are mounted.

Under that mount, I have group folder, and I'd like to NFS share out that group folder to users with the proper GUIDs...

When I start the client's autofs, I don't get any errors... but I also can't see the folders in the group mount.

What am I doing wrong?

Moreover, what is the proper procedure for sharing group folders?

FYI: I've setup the /home/group folder with an overall GUID "GroupUsers" and then set up easy special user group as "Group1" "Group2" etc...  All users that should have group access belong to the "GroupUsers" group, and then also ahve specific other groups as well.

Thanks in advance!

Gerhard
0
Comment
Question by:gerhardub
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 38

Accepted Solution

by:
wesly_chen earned 500 total points
ID: 18767575
> auto.home has one line:
> *  -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp  lfs1:/home:&
change to
*  lfs1:/home/&

change (take out -timeouot=600)
---- /etc/auto.master ----
/misc /etc/auto.misc
/net -hosts
/home /etc/auto.home
/group /etc/auto.group
+auto.master
---------

change /etc/sysconfig/autofs
----
LOCALOPTIONS="soft,intr,rsize=32768,wsize=32768,nosuid,tcp"
DAEMONOPTIONS="--timeout=600"
-----

auto.group has one line:
*  lfs1:/home/group/&
0
 
LVL 1

Author Comment

by:gerhardub
ID: 18767638
Cool... I'll try this too.

Question for you:

What does the & specifically mean in the lfs1:/home/group/& and so on?

I thought it referenced to the user's ID... but now I'm a tad confused...
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 18767716
> What does the & specifically mean in the lfs1:/home/group/& and so on?
so it mounts /group/groupA when you type "cd /group/groupA", not mounts /group/groupB
0
 
LVL 1

Author Comment

by:gerhardub
ID: 18768290
Well,

That didn't exactly work...

What I've got on the lsf1 NFS server is Fiber SAN under VMware that is running a Fedora Core 6 32bit linux system with an 800GB partition mounted as /home on that "server."

So under /home on the lfs1 server is:

<user1>
<user2>
<user3>
<user4>
...
<group>
              <group folder 1>
              <group folder 2>
              <group folder 3>
              ...

...and so on.

What I want to have happen is the group folder be auto mounted like the home directory, but I want users that belong to the group to be able to see and access the version group folders.

Currently, when I attempt to have the "auto.group" autofs mount, I don't see of the subfolders in the group folder.

What should I be doing to achieve this?
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 18768360
As I mentioned, you need to either do "cd /group/group1" or "ls -al /group/group1" to trigger the autofs to mount /group/group1, otherwise, you won't see anything from "ls -al /group".

/group is different than /home directory during login because it requires to "cd /home/user1" when user1 login. But not for /group/group1.

You can put a line:
---------
ls -al /group/`id -gn`
---------
in /etc/bashrc (assume the default shell for user is bash).
to trigger mount /group/group1 while login.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Hosting 16 75
How yum repo uses sqlite3 to keep metadata about the repository? 2 53
cannot rename datastore 3 94
awk to variable in bash 2 106
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question