AllowOverride AuthConfig FileInfo Indexs Limit OptionsOrder allow ,denyDeny from all-----------------注意:就是这儿!!--->把这行去掉或注释掉就行!!!
分类:
数据库 时间:
2014-12-18 16:41:51
阅读次数:
168
最近用户老是反映登陆一台server,出现Userauthenticationfailed报错。我手动重启winbind进程后,登陆恢复正常。authconfig查看配置一栏,有cacheinformation这一项,尝试勾上去,结果重新加载winbind时候出现servicenscd加载失败。百度了得知,nscd是linux环境的DNS缓存服务。..
分类:
系统相关 时间:
2014-12-17 19:03:36
阅读次数:
208
#!/bin/bash
#
yuminstallnss-pam-ldapdpam_ldapopenldap-clients-y
sed-i"/^CACHECREDENTIALS=/d;/^USESHADOW=/d;/^USELDAPAUTH=/d;/^USELDAP=/d;/^USECRACKLIB=/d;/^USELOCAUTHORIZE=/d"/etc/sysconfig/authconfig
echo"CACHECREDENTIALS=yes
USESHADOW=yes
USELDAPAUTH=yes
..
分类:
其他好文 时间:
2014-08-12 03:40:54
阅读次数:
220
#!/bin/bash#forsecurityofosforipin`catip.txt`doecho-e"\033[31m##################$ip#####################\033[0m"RedhatVersion=`ssh$ip-C"cat/etc/issue"|awkNR==1‘{print$7}‘`if[${RedhatVersion}=‘5.6’]thenssh$ip-C"chattr-i/etc/login.defs&&authconfig--..
分类:
其他好文 时间:
2014-07-17 09:41:28
阅读次数:
257