Re: automounter with users home directories on centos 7.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@server2 home]# cd /home
[root@server2 home]# ls
[root@server2 home]# cd jason
-bash: cd: jason: No such file or directory
[root@server2 home]# df -h ./
Filesystem      Size  Used Avail Use% Mounted on
/etc/auto.home     0     0     0    - /home
[root@server2 home]#

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

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

[root@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@server2 home]# mount server1:/home/jason /home/jason
| [root@server2 home]#
| [root@server2 home]# ls /home/jason/
| Desktop  Documents  Downloads  Music  mylogfile.txt  Pictures Public
| Templates  Videos
| [root@server2 home]# df -h /home/jason/
| Filesystem           Size  Used Avail Use% Mounted on
| server1:/home/jason  297M   19M  278M   7% /home/jason
| [root@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@xxxxxxxxxxxxxxx <mailto:jason.welsh@xxxxxxxxxxxxxxx>_

*SMARTER, STRONGER, FASTER, BETTER*
www.mercurygate.com <http://www.mercurygate.com>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux