Re: [newbie] single user boot: i still cannot change root password

2002-10-03 Thread Ma Anguo


- Original Message -
From: "Derek Jennings" <[EMAIL PROTECTED]>

> If in the future you get 'locked out' in any way. Avoid pressing that
reset
> button.
> The graceful way to restart a Linux system is described here
> http://www.linux-mandrake.com/en/doc/82/en/ref.html/ts-system-freeze.html
>
> Secondly you will have much less risk of corrupting your drive with an
> unexpected reset if you use one of the journalling file systems like,
Ext3,
> Reiserfs or XFS
>
> If your partitions are currently Ext2 you can upgrade them to Ext3 without
> damaging your data.
>
> derek

Thanks a lot derek,
I'll investigate both points before bed time, when i get back from work
tonight.

I have been using Linux on and off for about a year, but I still have so
much to learn.


Blessings,


anguo




















Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] single user boot: i still cannot change root password

2002-10-03 Thread Ma Anguo


- Original Message -
From: "Franki" <[EMAIL PROTECTED]>

> boot from the CD. and at the prompt. type "rescue" without the prompts...
> it will then boot the CD install kernel and stuff and when finished you
can
> type:
> chroot /mnt
> then change your passwords etc...


Thanks ever so much... It worked perfectly this way.

:-D

Blessings,

Anguo











Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] single user boot: i still cannot change root password

2002-10-03 Thread Derek Jennings

On Thursday 03 Oct 2002 4:40 am, Ma Anguo wrote:
> I upgraded the security level of my mandrake 8.2 box from the lowest to the
> intermediate (3) level.
>
> Now I don't have access to any user, including root, because my passwords
> are all expired. I couldn't su to root and couldn't shutdown the box
> (ctr+alt+del didn't respond). I was stuck with the graphical login and had
> to press the reset button :-( , messing the filesystem...
>
SNIP

If in the future you get 'locked out' in any way. Avoid pressing that reset 
button.
The graceful way to restart a Linux system is described here
http://www.linux-mandrake.com/en/doc/82/en/ref.html/ts-system-freeze.html

Secondly you will have much less risk of corrupting your drive with an 
unexpected reset if you use one of the journalling file systems like, Ext3, 
Reiserfs or XFS

If your partitions are currently Ext2 you can upgrade them to Ext3 without 
damaging your data.

derek



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [newbie] single user boot: i still cannot change root password

2002-10-02 Thread Franki

boot from the CD. and at the prompt. type "rescue" without the prompts...

it will then boot the CD install kernel and stuff and when finished you can
type:

chroot /mnt

and you will have access to your files stuff..

then change your passwords etc...

rgds

Franki...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ma Anguo
Sent: Thursday, 3 October 2002 11:41 AM
To: Mandrake Newbie ml
Subject: [newbie] single user boot: i still cannot change root password




I upgraded the security level of my mandrake 8.2 box from the lowest to the
intermediate (3) level.

Now I don't have access to any user, including root, because my passwords
are all expired. I couldn't su to root and couldn't shutdown the box
(ctr+alt+del didn't respond). I was stuck with the graphical login and had
to press the reset button :-( , messing the filesystem...

I googled the internet to find out how to boot as a single user and change
the root password. Here is what I did.

lilo> linux runlevel 1
or
lilo> linux single
didn't help. The file system is messed (du to hard reset) and I am faced
with the alternative of either supplying the root password (which I don't
have) for maintenance or press ctr+D to do a normal start, which brings me
back to the stallemate above...

(btw, is there any difference between:
linux runlevel 1   ,
linux init 1   and
linux single  ?)

I then tried:

lilo> linux init=/bin/sh rw

which gave me an init prompt.

I typed su and without asking for a password, I got the root prompt:
[root@(none) / ]#

I located the passwd command in the filesystem and tried it:
# ./passwd root
./passwd: permission denied.
I have the same result at the init or root prompt.

I then tried to modify the /etc/passwd file to erase the root pass (as I
read I could do when I googled the web).
vi didn't work but I found a vim-minimum in the filesystem and used it to vi
/etc/passwd but the file was read only and any attempt to write it failed.

Another note that might be important: the /usr filesystem was not mounted
and I didn't mount it because the filesystem got corrupted and trying to
mount it would have brought plenty of error messages and I wouldn't have
known what to do).

So: I lost my root password (not that I forgot it but it unexpectedly got
expired!)
I could login and su to root as a single user but still could do anything
about it!

Beside getting me back my user and root password, I'd like to know if it is
possible to switch back to a lower security level... I cannot manage my box
at a higher level


Thanks,

Anguo











Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com