RHCE131 Lecture11 Centralized user Admainistration

system-config-authentication   客户端配置

 

authconfig-gtk          同上

 

NIS 不支持 windows

 

rpm -q ypbind portmap

 

 

authconfig-tui    蓝屏 

 

ypcat passwd   获得帐户信息

 

PAM :用来负责所有应用程序的 应用验证

 

NSS: 名称服务切换

 

主机名解析       DNS      NIS     LDAP

 

vim /etc/nsswitch.conf

 

vim /etc/yp.conm   最后加了一行配置

 

getent entry 

 

showmount -e 192.168.0.254

 

getent passwd guest2018

 

mount 192.168.0.254:/home/guests/guest2003 /home/guests/guest2003

autofs  自动挂载  

 

*为user1   则 &也为 user1

 

&引用 *

 

vim /etc/auto.master

 

 

#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc   /etc/auto.misc
/home/guests    /etc/auto.nis
#
# NOTE: mounts done from a hosts map will be mounted with the
#       "nosuid" and "nodev" options unless the "suid" and "dev"
#       options are explicitly given.
#
/net    -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
-- INSERT --                                                 10,32         Top

 

 

vim /etc/auto.nis

 

guests    192.168.0.254:/home/guests/guest2003

 

*    192.168.0.254:/home/guests/&    (PS:&后面千万别加空格,不然报错!

 

service autofs restart

 

service autofs reload

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值