|
楼主 |
发表于 2006-11-21 13:19:08
|
显示全部楼层
发行版是rhel4,/etc/pam.d/su的内容如下:
#%PAM-1.0
auth sufficient /lib/security/$ISA/pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient /lib/security/$ISA/pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth required /lib/security/$ISA/pam_wheel.so use_uid
auth required /lib/security/$ISA/pam_stack.so service=system-auth
account required /lib/security/$ISA/pam_stack.so service=system-auth
password required /lib/security/$ISA/pam_stack.so service=system-auth
# pam_selinux.so close must be first session rule
session required /lib/security/$ISA/pam_selinux.so close
session required /lib/security/$ISA/pam_stack.so service=system-auth
# pam_selinux.so open and pam_xauth must be last two session rules
session required /lib/security/$ISA/pam_selinux.so open multiple
session optional /lib/security/$ISA/pam_xauth.so
现在是只能root登陆,普通用户无法登陆,登陆的时候很快的一闪就回登陆界面了,远程ssh也一样,root登陆后su到普通用户就提示“could not open session”,mysql启动也是失败,samba服务可以起来但是无法访问,说没有权限,httpd服务也起来的,但是用浏览器访问的时候说
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.0.52 (Red Hat) Server at 10.15.62.222 Port 80
感觉就是除了root以外的所有用户都不能用了,不知道怎么回事,继续求教大侠! |
|