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