[CentOS] automounter with users home directories on centos 7.

Fri Sep 11 13:16:32 UTC 2015
Jason Welsh <jason.welsh at mercurygate.com>

ok, I have moved home out of the way and restarted automounter..
and now I see the /home directory appear when autofs is started, but 
there is still nothing there..

[root at server2 home]# cd /home
[root at server2 home]# ls
[root at server2 home]# cd jason
-bash: cd: jason: No such file or directory
[root at server2 home]# df -h ./
Filesystem      Size  Used Avail Use% Mounted on
/etc/auto.home     0     0     0    - /home
[root at server2 home]#

I still dont see any errors  in the logs on either server.

btw, my uid on both servers is the same.
[root at server2 ~]# id jason
uid=1000(jason) gid=1000(jason) groups=1000(jason),10(wheel)

[root at server1 log]# id jason
uid=1000(jason) gid=1000(jason) groups=1000(jason),10(wheel)

Jason


On 09/10/2015 07:32 PM, James A. Peltier wrote:
>
> ----- Original Message -----
> |
> | [root at server2 home]# mount server1:/home/jason /home/jason
> | [root at server2 home]#
> | [root at server2 home]# ls /home/jason/
> | Desktop  Documents  Downloads  Music  mylogfile.txt  Pictures Public
> | Templates  Videos
> | [root at server2 home]# df -h /home/jason/
> | Filesystem           Size  Used Avail Use% Mounted on
> | server1:/home/jason  297M   19M  278M   7% /home/jason
> | [root at server2 home]#
> |
> | so it works manually, just not with the automounter.
> |
> | Jason
>
> Of course, because a manual mount expects a directory to already exist to mount on. Automounter creates virtual mount points on demand and so if there are existing directories already in place it will fail.
>
> Stop autofs.  Move the /home out of the way.  Start automounter and than do an ls /home.  It should "just work"
>

-- 
*/Jason Welsh/*
*MercuryGate International, Inc.*
Sr. System Administrator
O: 919-469-7670
C: 919-410-7883
_jason.welsh at mercurygate.com <mailto:jason.welsh at mercurygate.com>_

*SMARTER, STRONGER, FASTER, BETTER*
www.mercurygate.com <http://www.mercurygate.com>