由买买提看人间百态

topics

全部话题 - 话题: sossss
(共0页)
l*****n
发帖数: 12
1
来自主题: Unix版 - SOSSSS! Passwd file broken
Here is the scenario:
I ftped passwd to windows.
And modify it a little bit.
Then ftp it back.
Noboday can log int the machine now.
I guessed it is because there is an Control-M at the end
of each line.
But how to solve it?
Is there a solution for this?
l***y
发帖数: 11
2
来自主题: Unix版 - SOSSSS! Passwd file broken
Yes, you found the problem.
Try to write a small program to replace those newline characters.
l*****n
发帖数: 12
3
来自主题: Unix版 - SOSSSS! Passwd file broken
But how? I can not access that file now.
How to access it in the first place?
Thanks very much
l***y
发帖数: 11
4
来自主题: Unix版 - SOSSSS! Passwd file broken
I think you're the system administrator. Don't worry. Ask your superior to reset it. I don't know how to do it.
l*****n
发帖数: 12
5
来自主题: Unix版 - SOSSSS! Passwd file broken
I do know the root password. But noweven root can not log in.
The other group memeber s will be mad at me since they can not
access also.
Who ca nsave me ?
T********r
发帖数: 6210
6
来自主题: Unix版 - SOSSSS! Passwd file broken
try to boot into single user mode (search google for FAQs
for your UNIX system, i.e. Solaris FAQs if you are using
Solaris), and then mount the file system which contains
/etc, move passwd to passwd.bak, and create a new passwd
file as:
echo "root::0:0::/:/bin/sh" > passwd
then reboot the machine, login as root and modify the
passwd.bak to remove ^M, copy it back to passwd.
(共0页)