* root account locked
@ 2000-03-06 5:00 Yanmei Li
2000-03-07 5:00 ` Dirk Kleinhesselink
0 siblings, 1 reply; 6+ messages in thread
From: Yanmei Li @ 2000-03-06 5:00 UTC (permalink / raw)
Hi all
I have accidentally locked my root account by hitting the lock button
when log as root. After that I can never login as root again. Now, I can
login as single-user but the file system is readonly. I can't change the
passwd file. How to make the file system writable?
Yanmei Li
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: root account locked
2000-03-06 5:00 root account locked Yanmei Li
@ 2000-03-07 5:00 ` Dirk Kleinhesselink
2000-03-07 5:00 ` Yanmei Li
0 siblings, 1 reply; 6+ messages in thread
From: Dirk Kleinhesselink @ 2000-03-07 5:00 UTC (permalink / raw)
Yanmei Li wrote:
> Hi all
>
> I have accidentally locked my root account by hitting the lock button
> when log as root. After that I can never login as root again. Now, I can
> login as single-user but the file system is readonly. I can't change the
> passwd file. How to make the file system writable?
>
> Yanmei Li
Try: mount -u /
And then you may need to mount your /usr filesystem
Dirk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: root account locked
2000-03-07 5:00 ` Dirk Kleinhesselink
@ 2000-03-07 5:00 ` Yanmei Li
2000-03-07 5:00 ` Dirk Kleinhesselink
0 siblings, 1 reply; 6+ messages in thread
From: Yanmei Li @ 2000-03-07 5:00 UTC (permalink / raw)
Thanks for replying.
I have removed the password field for the root account in the passwd file.
But I still can't access my root account. Either login as root nor su root.
Any suggestion?
Thanks again
Dirk Kleinhesselink wrote:
> Yanmei Li wrote:
>
> > Hi all
> >
> > I have accidentally locked my root account by hitting the lock button
> > when log as root. After that I can never login as root again. Now, I can
> > login as single-user but the file system is readonly. I can't change the
> > passwd file. How to make the file system writable?
> >
> > Yanmei Li
>
> Try: mount -u /
> And then you may need to mount your /usr filesystem
>
> Dirk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: root account locked
2000-03-07 5:00 ` Yanmei Li
@ 2000-03-07 5:00 ` Dirk Kleinhesselink
2000-03-08 5:00 ` Yanmei Li
0 siblings, 1 reply; 6+ messages in thread
From: Dirk Kleinhesselink @ 2000-03-07 5:00 UTC (permalink / raw)
Yanmei Li wrote:
> Thanks for replying.
>
> I have removed the password field for the root account in the passwd file.
> But I still can't access my root account. Either login as root nor su root.
> Any suggestion?
>
Hmm, what OS/Version are you running ? I have used this several times with
Digital UNIX 4.0 as well as FreeBSD. Is the /etc/passwd file corrupted in some
other fields ? Did you edit it with vipw ?
I would look at these things.
Dirk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: root account locked
2000-03-08 5:00 ` Yanmei Li
@ 2000-03-08 5:00 ` Dirk Kleinhesselink
0 siblings, 0 replies; 6+ messages in thread
From: Dirk Kleinhesselink @ 2000-03-08 5:00 UTC (permalink / raw)
Yanmei Li wrote:
> I am using the Digital UNIX 4.0B.
> The /etc/passwd file is OK in other field, other users still can login.(Only root
> account is locked).
> Probably the hashed database is used (but not sure).
> I didn't use vipw, this editor is not available in single-user-mode. I used echo
> to change the passwd file.
>
> Thank you very much for your help.
> Yanmei
>
>
I would try to boot into single user mode, remount root to be writable, mount /usr
and /var - if /var is a separate file system and then try to run vipw. I never
tried that before, but I would think that with all local filesystems mounted, it
should work -- you might need to set the path, too.
Dirk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: root account locked
2000-03-07 5:00 ` Dirk Kleinhesselink
@ 2000-03-08 5:00 ` Yanmei Li
2000-03-08 5:00 ` Dirk Kleinhesselink
0 siblings, 1 reply; 6+ messages in thread
From: Yanmei Li @ 2000-03-08 5:00 UTC (permalink / raw)
I am using the Digital UNIX 4.0B.
The /etc/passwd file is OK in other field, other users still can login.(Only root
account is locked).
Probably the hashed database is used (but not sure).
I didn't use vipw, this editor is not available in single-user-mode. I used echo
to change the passwd file.
Thank you very much for your help.
Yanmei
Dirk Kleinhesselink wrote:
> Yanmei Li wrote:
>
> > Thanks for replying.
> >
> > I have removed the password field for the root account in the passwd file.
> > But I still can't access my root account. Either login as root nor su root.
> > Any suggestion?
> >
>
> Hmm, what OS/Version are you running ? I have used this several times with
> Digital UNIX 4.0 as well as FreeBSD. Is the /etc/passwd file corrupted in some
> other fields ? Did you edit it with vipw ?
> I would look at these things.
>
> Dirk
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-03-08 5:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-06 5:00 root account locked Yanmei Li
2000-03-07 5:00 ` Dirk Kleinhesselink
2000-03-07 5:00 ` Yanmei Li
2000-03-07 5:00 ` Dirk Kleinhesselink
2000-03-08 5:00 ` Yanmei Li
2000-03-08 5:00 ` Dirk Kleinhesselink
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox