EX-200 考试真题解析之LDAP配置(2)

背景

EX-200考试题目之LDAP配置-优快云博客

这是上一篇的LDAP配置(1)的答案。今天我们来看后续的两个问题。

问题

2题:配置autofs以确保登录成功后,它具有主目录autofs,在ip:172.24.40.10处共享为/rhome/ldapuser40。 它还要求其他LDAP用户可以正常使用主目录。

Configure autofs to make sure after login successfully, it has the home directory autofs, which is shared as /rhome/ldapuser40 at the ip: 172.24.40.10. and it also requires that, other ldap users can use the home directory normally.

备注:EX考试是全英文的。其目的我想是方便你看一些命令,毕竟命令里没有汉语字符,Linux的shell的编码应该是ASCII而不是什么UTF-8

解析:

你还是要像第一篇LDAP回答一样,先把你的镜像先挂载在你的Linux上。然后才能安装包。当然你从internet上安装应该也可以。

安装autofs

# yum install –y autofs

这里进入/etc,后面不用重复写目录了

# cd /etc/

配置master

# vim  auto.master

/rhome  /etc/auto.ldap

cp这个命令,其实就是把auto.misc这个文件改为auto.ldap,可以理解为重命名。

# cp  auto.misc  auto.ldap

# vim  auto.ldap

vim里修改的两行如果对齐,观看会十分清晰,你会记忆的更好。

ldapuser40  -rw,soft,intr  172.24.40.10(题干里的地址):/rhome/ldapuser40 ldap40用户)

         -rw,soft,intr  172.16.40.10(随便写一个地址):/rhome/&(其他用户)

重新加载autofs,自启动,showmount,测试登录。

# service autofs restart

# chkconfig autofs on

# showmount -e 172.24.40.10   更改指定共享服务器输出目录列表

# su - ladpuser40

3题:配置系统时间同步为172.24.40.10。

Configure the system synchronous as 172.24.40.10.

这里和第一题一样,我的回答不用命令行而是用图形UI。

你在全网都估计找不到这个答案。你得先安装所有(包名字后加*)date开头的包不然你的system-config-啥啥啥  命令都不能用,因为没有。

先安装 安装包

# yum install -y system-config-da*

安装完包以后

# system-config-date

#选择network time protocol(也就是ntp)标签

#NTP server配置为:172.24.40.10

#勾选:synchronize system clock before starting service

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值