Hi,
I have a autofs configured to mount home dir from NFS. All user accounts lookup is done using LDAP. All is working fine with this setup. Now I need to create a local user account and have its home dir also on local system. So I added a new user account and changed auto.home as follows:
test1 -rw,hard,intr /home/test1 * -rw,hard,intr nfs1:/export/users/&
But this stuff is not working. If I change test1 user's home dir to '/opt/test1', it works fine. Log messages indicate: 'umount_autofs_indirect: ask umount returned busy /home'. I have some LDAP users logged on to system. Do I need to tell them to logout to successfully reload autofs? Any clues on this would be really helpful.
Thanks, CS.
On Monday 25 January 2010 19:35:07 Carlos Santana wrote:
Now I need to create a local user account and have its home dir also on local system
If it's a local user you want (with its fils on local system) why are you using the autofs facility? Isn't it just a matter of creating the user locally and make sure it resides in the local system's /etc/passwd file? Did you check /etc/nsswitch.conf to find out the order the databases are searched? What do you get when you do: getent passwd | grep test1
HTH, Jorge
On Mon, Jan 25, 2010 at 3:35 PM, Carlos Santana neubyr@gmail.com wrote:
Hi,
I have a autofs configured to mount home dir from NFS. All user accounts lookup is done using LDAP. All is working fine with this setup. Now I need to create a local user account and have its home dir also on local system. So I added a new user account and changed auto.home as follows:
test1 -rw,hard,intr /home/test1
- -rw,hard,intr nfs1:/export/users/&
But this stuff is not working. If I change test1 user's home dir to '/opt/test1', it works fine. Log messages indicate: 'umount_autofs_indirect: ask umount returned busy /home'. I have some LDAP users logged on to system. Do I need to tell them to logout to successfully reload autofs? Any clues on this would be really helpful.
You can't use the path /home because the autofs uses it to mount the home directories.
cd /home df .
Your entry for test1 is trying to mount /home/test1 on /home/test1 which won't work.
The local user can not use the path /home as long as autofs is using /home.
On Mon, Jan 25, 2010 at 8:35 PM, Agile Aspect agile.aspect@gmail.com wrote:
On Mon, Jan 25, 2010 at 3:35 PM, Carlos Santana neubyr@gmail.com wrote:
Hi,
I have a autofs configured to mount home dir from NFS. All user accounts lookup is done using LDAP. All is working fine with this setup. Now I need to create a local user account and have its home dir also on local system. So I added a new user account and changed auto.home as follows:
test1 -rw,hard,intr /home/test1
- -rw,hard,intr nfs1:/export/users/&
But this stuff is not working. If I change test1 user's home dir to '/opt/test1', it works fine. Log messages indicate: 'umount_autofs_indirect: ask umount returned busy /home'. I have some LDAP users logged on to system. Do I need to tell them to logout to successfully reload autofs? Any clues on this would be really helpful.
You can't use the path /home because the autofs uses it to mount the home directories.
cd /home df .
Your entry for test1 is trying to mount /home/test1 on /home/test1 which won't work.
The local user can not use the path /home as long as autofs is using /home.
-- Enjoy global warming while it lasts. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Thanks for the replies.
Could you please elaborate more on this? Why is it not working?
So I will have to create/use a different directory for local users?
- CS.