由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - SOSSSS! Passwd file broken
相关主题
新增用户为什么不能login?file descriptor
为什么会有这样的信息?Solaris FAQ
Re: No Shell problem!How to tell XFree86's version?
how can I change csh to tcsh or bash安装 Solaris 8 x86 和 Win2K 小记
how to log in after delete /etc/passwdvi 一问.
standalone sun box questionerror in my function "write_log"
lost root accountHow to use sed to add newline character?
Solaris 8系统求助about vi.
相关话题的讨论汇总
话题: passwd话题: file话题: sossss话题: modify话题: ftped
进入Unix版参与讨论
1 (共1页)
l*****n
发帖数: 12
1
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
Yes, you found the problem.
Try to write a small program to replace those newline characters.

【在 l*****n 的大作中提到】
: 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*****n
发帖数: 12
3
But how? I can not access that file now.
How to access it in the first place?
Thanks very much

【在 l***y 的大作中提到】
: Yes, you found the problem.
: Try to write a small program to replace those newline characters.

l***y
发帖数: 11
4
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 的大作中提到】
: But how? I can not access that file now.
: How to access it in the first place?
: Thanks very much

l*****n
发帖数: 12
5
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 ?

【在 l***y 的大作中提到】
: I think you're the system administrator. Don't worry. Ask your superior to reset it. I don't know how to do it.
T********r
发帖数: 6210
6
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.

【在 l*****n 的大作中提到】
: 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 ?

1 (共1页)
进入Unix版参与讨论
相关主题
about vi. how to log in after delete /etc/passwd
paste command 里面的 -standalone sun box question
怎样打印出grep后的部分内容?lost root account
Apache中如何加入用户和口令?Solaris 8系统求助
新增用户为什么不能login?file descriptor
为什么会有这样的信息?Solaris FAQ
Re: No Shell problem!How to tell XFree86's version?
how can I change csh to tcsh or bash安装 Solaris 8 x86 和 Win2K 小记
相关话题的讨论汇总
话题: passwd话题: file话题: sossss话题: modify话题: ftped