LinuxSir.cn,穿越时空的Linuxsir!

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

我的password database怎么了???????

[复制链接]
发表于 2003-11-2 01:02:55 | 显示全部楼层 |阅读模式
tony# rmuser an
rmuser: user (an) does not exist in the password database.
tony# adduser
Username: an
Full name: an
Uid (Leave empty for default):
Login group [an]:
Login group is an. Invite an into other groups? []:
Login class [default]:
Shell (sh csh tcsh) [sh]:
Home directory [/home/an]:
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]: yes
Lock out the account after creation? [no]:
Username   : an
Password   : <blank>
Full Name  : an
Uid        : 1002
Class      :
Groups     : an
Home       : /home/an
Shell      : /bin/sh
Locked     : no
OK? (yes/no): yes
pw: user 'an' already exists
adduser: ERROR: There was an error adding user (an).
Add another user? (yes/no):

现在是 用户 删也删不掉 加也加不上 , 我的password database.怎么了?

那位指点一下??

如何修复???
 楼主| 发表于 2003-11-2 01:14:55 | 显示全部楼层
sysinstall 一样不能添加用户  
发表于 2003-11-2 13:25:52 | 显示全部楼层
最初由 eTony 发表
sysinstall 一样不能添加用户  




好怪,我的也是,KDE不能用了,忍了几个月,忍不下去了,重装
 楼主| 发表于 2003-11-2 18:26:36 | 显示全部楼层
是啊

我是在安装vsftp是发现的, 系统提示我‘ftp’用户已存在 ,安装终止,

这个问题怎么解决啊, 哪位指点一下啊!!
发表于 2003-11-2 19:09:39 | 显示全部楼层
你看看/etc/master.passwd里有些什么用户!
 楼主| 发表于 2003-11-2 19:44:57 | 显示全部楼层
File: /etc/master.passwd

# $FreeBSD: src/etc/master.passwd,v 1.34 2003/04/27 05:45:29 imp Exp $
#
root1$R7b0Jkmk$29tdQeHjdjILoc99acV8q.:0:0::0:0:Charlie &:/root:/bin/csh
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/sbin/nologin
operator:*:2:5::0:0:System &:/:/sbin/nologin



File: /etc/passwd
# $FreeBSD: src/etc/master.passwd,v 1.34 2003/04/27 05:45:29 imp Exp $
#
root:*:0:0:Charlie &:/root:/bin/csh
toor:*:0:0:Bourne-again Superuser:/root:
daemon:*:1:1:Owner of many system processes:/root:/sbin/nologin
operator:*:2:5:System &:/:/sbin/nologin


两个文件中的root部分竟然不一样!!!
master.passwd 中的密码竟然没有转移??
还是应该就这样??
发表于 2003-11-2 19:56:33 | 显示全部楼层
是这样, master.passwd是这样, passwd的密码部分是*。
发表于 2003-11-2 19:57:32 | 显示全部楼层
/etc/group里有没an这个用户名呢?
 楼主| 发表于 2003-11-2 20:03:23 | 显示全部楼层
有这个组

File: /etc/group  
an:*:1002:


File: /etc/passwd
an:*:1002:1002:User &:/home/an:/bin/sh
发表于 2003-11-2 20:11:01 | 显示全部楼层
从root su an再设置密码行不?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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