取消
顯示結果 
搜尋替代 
您的意思是: 

passwd文件的问题

passwd文件的问题

大家好:

 我的tru64 5.1A操作系统的密码改不了?提示Hashed passwd database does not match the /etc/passwd file. Rerun 'mkpasswd /etc/passwd'.于是我就备份passwd文件系统运行#mkpasswd /etc/passwd

23 password entries (longest entry is 87 bytes long)然后我再使用#passwd ipmin

Change password: ipmin: unknown user.

提示如上错误。在使用mkpasswd之前,passwd文件里面有ipmin这个用户的,但使用后就没有了,我把以前的passwd.bak文件cp回passwd里面也还是没有了。怎么办?

这个用户管着很多东西呀!急!!!

 请大家帮帮我!

3 回覆

passwd文件的问题

Hello:



Would please follow the following steps:

1. # cp -p /etc/passwd /etc/passwd.OLD

2. # mv /etc/passwd.pag /etc/passwd.pag.OLD

3. # mv /etc/passwd.dir /etc/passwd.dir.OLD

4. # vipw >> Nothing to edit, just :wq

and it will generate and update

/etc/passwd.pag and /etc/passwd.dir



The error means that /etc/passwd.pag or

/etc/passwd.dir is out-of-date or data

format is mismatched.



Any other question can be posted later.

Wish this can fix your urgent request!



Danny

passwd文件的问题

hi Danny:

按照你说的方法,我试了出现如下问题:

1。使用vipw编辑ipmin用户后,可以进行ipmin的home目录了,但是进去后发现里面的文件名全部被改了。例如:

test -rwxrwxrwx ipmin system 100block现在变成

1111 -rwxrwxrwx ipmin system 100block了

2。请问怎么解决这种问题?什么环节出了问题?

passwd文件的问题

Hello:



Would you please post the commands and

command outputs in detail, and some Simplified

Chinese is not so easy to read, so please

use English instead to post information in

detail?



Any inconvenience given to you, I beg your

pardon.



Danny