Linux基础教程学习笔记之Autofs自动挂载
Linux基础教程学习笔记之Autofs自动挂载
Autofs自动挂载:
yum -y install autofs
vim /etc/auto.master 在文件中添加下面行
/home/guests /etc/auto.tianyun
vim /etc/auto.tianyun 子挂载点监控
ldapuser0 -rw,sync classroom:/home/guests/ldapuser0
systemctl enable autofs.service
systemctl restart autofs.service
ls /home/guests 自动创建父挂载点
ls /home/guests/abc 被监控,目标文件不存在
测试 ssh ldapuser0@localhost, 要是再使用ldapuser1呢,则家目录又没有挂载了,那怎么办呢?
autofs自动挂载用户家目录:
vim /etc/auto.tianyun, 添加 * -rw,sync classroom:/home/guests/&
systemctl restart autofs.service
vim /etc/sysconfig/autofs TIMEOUT=300
相关推荐
LandryBean 2020-08-02
不知鲸又是鱼 2020-07-27
fushilin 2020-05-28
virusplayer 2020-05-08
qingsongzdq 2020-05-01
lyg0 2020-03-07
zuixin 2020-02-22
qingsongzdq 2020-01-17
疯狂老司机 2019-12-21
一个逗逗 2019-12-15
ITfooter 2019-12-14
terabits的钵壳 2014-01-14
vanturman 2014-12-08
Luffyying 2019-11-17
86477414 2015-08-20
goawalk 2015-08-02
涅磐 2015-07-31
winskingli 2015-07-31