Centos-DS and automount directories (not users dirs)

Issues related to applications and software problems
Post Reply
shayani
Posts: 3
Joined: 2011/08/02 13:45:25

Centos-DS and automount directories (not users dirs)

Post by shayani » 2011/08/02 13:50:11

Hi all,

I have a Centos-DS installed in a CentOS 5.6 up and running.

All users can login and authenticate correctly.

Also, I followed the tutorial on http://directory.fedoraproject.org/wiki/Howto:Automount and users are able to mount, using autofs, their own directories.

BUT, I need to make, all users, mount some common directories for daily work.

The server have NFS configured to export (in server side) /workdir (the same way the server export the /home directories).

I getting very exhausting to configure the LDAP to export correctly this directory.

Can anyone help me writing the correct LDIF for that?

Thanks

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Centos-DS and automount directories (not users dirs)

Post by pschaff » 2011/08/02 18:40:00

I don't know about LDAP/LDIF. I'd just use autofs. Make sure the directory can be mounted via NFS by doing it manually, and that autofs is installed and is on via chkconfig. Assume the server is named "myserver" and the name can be resolved by the clients. Create a link in each user's home directory:[code]
su - username
ln -s /net/myserver/workdir
exit[/code]

If the user does cd ~/workdir, or otherwise attempts to access the directory tree, autofs will take care of mounting it. Naturally the user UIDs and GIDs must exist on the server and have appropriate access to the required files under workdir.

Post Reply