LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 629|回复: 7

给用户改密码出现的问题

[复制链接]
发表于 2004-9-21 21:22:34 | 显示全部楼层 |阅读模式
我的redhat9 上用
useradd test
passwd test
出现如下问题
User not known to the underlying authentication module
这是别人用过的linux服务器,好象认证模式不对,怎么修改,请高手赐教!
发表于 2004-9-21 21:26:14 | 显示全部楼层
切换到root,然后
passwd -d username
passwd username
这样试试看吧
 楼主| 发表于 2004-9-21 21:27:17 | 显示全部楼层
我就是用的root用户!
 楼主| 发表于 2004-9-21 21:33:31 | 显示全部楼层
楼上的兄弟,不行啊!不过还谢谢你!
发表于 2004-9-21 21:37:21 | 显示全部楼层
查看一下/etc/login.defs和/etc/pam.d/passwd文件
 楼主| 发表于 2004-9-21 21:45:11 | 显示全部楼层
etc/pam.d/passwd
#%PAM-1.0
auth       required     pam_stack.so service=system-auth
account    required     pam_stack.so service=system-auth
password   required     pam_stack.so service=system-auth

/etc/login.defs
[root@localhost /]# vi /etc/login.defs
# *REQUIRED*
#   Directory where mailboxes reside, _or_ name of file, relative to the
#   home directory.  If you _do_ define both, MAIL_DIR takes precedence.
#   QMAIL_DIR is for Qmail
#
#QMAIL_DIR      Maildir
MAIL_DIR        /var/spool/mail
#MAIL_FILE      .mail

# Password aging controls:
#
#       PASS_MAX_DAYS   Maximum number of days a password may be used.
#       PASS_MIN_DAYS   Minimum number of days allowed between password changes.
#       PASS_MIN_LEN    Minimum acceptable password length.
#       PASS_WARN_AGE   Number of days warning given before a password expires.
#
PASS_MAX_DAYS   99999
PASS_MIN_DAYS   0
PASS_MIN_LEN    5
PASS_WARN_AGE   7

#
# Min/max values for automatic uid selection in useradd
#
UID_MIN                   500
UID_MAX                 60000

#
# Min/max values for automatic gid selection in groupadd
#
GID_MIN                   500
GID_MAX                 60000

#
# If defined, this command is run when removing a user.
# It should remove any at/cron/print jobs etc. owned by
# the user to be removed (passed as the first argument).
#
#USERDEL_CMD    /usr/sbin/userdel_local

#
# If useradd should create home directories for users by default
# On RH systems, we do. This option is ORed with the -m flag on
# useradd command line.
#
CREATE_HOME     yes
发表于 2004-9-21 22:07:04 | 显示全部楼层
没什么问题呀~~~,看看passwd和useradd文件有什么问题!
/home/lee#ll /usr/bin/passwd
-r-s--x--x    1 root     root        16336 2003-02-14  /usr/bin/passwd
/home/lee#ll /usr/sbin/useradd
-rwxr-xr-x    1 root     root        56088 2003-02-13  /usr/sbin/useradd

切换到root的时候,su后面要加上-号,即: su - root
 楼主| 发表于 2004-9-22 10:27:37 | 显示全部楼层
好象还不行,我要问问以前那个管理员!知道了我再发上来!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表