[Freeipa-users] Auto-Mount Home Directory for Local Users?

Elijah Elliott elijah.elliott at moser-inc.com
Thu Jun 20 03:37:32 UTC 2013


Just move the home directory out of /home if you don't want it auto mounted at all.

# usermod -m -d /export/home/local local

That will move it out of /home and copy the contents to the new location of /export/home. Since /export/home isn't in the auto.home map it will skip auto mounting. Or if the user is an IPA user its:

# ipa-moduser -directory=/export/home/local local

-Eli

From: Dean Hunter <deanhunter at comcast.net<mailto:deanhunter at comcast.net>>
Date: Wednesday, June 19, 2013 11:07 PM
To: "freeipa-users at redhat.com<mailto:freeipa-users at redhat.com>" <freeipa-users at redhat.com<mailto:freeipa-users at redhat.com>>
Subject: Re: [Freeipa-users] Auto-Mount Home Directory for Local Users?
Resent-From: <elijah.elliott at moser-inc.com<mailto:elijah.elliott at moser-inc.com>>

Thanks to all for the suggestions. Adding a "local" key to "/etc/auto.home" resolved the problem:

[root at host<mailto:root at host> ~]# ipa automountlocation-tofiles VM
/etc/auto.master:
/-      /etc/auto.direct
/home   /etc/auto.home
---------------------------
/etc/auto.direct:
/mnt/Shared     -fstype=nfs4,sec=krb5p host.hunter.org:/srv/nfs/Shared
---------------------------
/etc/auto.home:
*       -fstype=nfs4,sec=krb5p host.hunter.org:/srv/nfs/home/&
local   -fstype=nfs4,sec=sys host.hunter.org:/srv/nfs/home/local

maps not connected to /etc/auto.master:
[root at host<mailto:root at host> ~]#

The only thing that would be better is if "local" did not auto-mount at all.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-users/attachments/20130620/e31a8281/attachment.htm>


More information about the Freeipa-users mailing list