Re: [opensuse] su password lost

2007-04-24 Thread peter nikolic
On Sunday 22 April 2007, StephenW wrote:
 I can no longer access su.
 I have only ever used one of two passwords.  Neither of them will work
 today.

 Suggestions for correction?

 winstephen


boot the system using a knoppix or similar live cd 

mount the / partition of the main hard drive (the one you screwed uo the 
password on)  best seems to be to mount it on /mnt/maindiskor something 
siomilar AFAIK it has to be in a directory UNDER /mnt of the running system


once mounted  chroot /mnt/main
passwd
enter new password for root user
reneter new password for root user 
new password saved   .

unmount the mounted hard drive   reboot   new password in use .

I have had to do this on several differing systems   suse simply mephis 
slackware..

never failed yet ..


have fun 

Pete .

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] su password lost

2007-04-22 Thread James Knott
StephenW wrote:
 I can no longer access su.  
 I have only ever used one of two passwords.  Neither of them will work today.

 Suggestions for correction?

 winstephen
   
You would normally use the root password, unless you're trying to su to
another user.  If you've forgotten the root password, it is possible
to remove or replace the existing root password, by booting from a
rescue disk and manipulating the /etc/password and shadow files. 
However, I have neven had a need to do that, so I can't speak from
experience.


-- 
Use OpenOffice.org http://www.openoffice.org
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[opensuse] su password lost

2007-04-22 Thread StephenW
I can no longer access su.  
I have only ever used one of two passwords.  Neither of them will work today.

Suggestions for correction?

winstephen
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] su password lost

2007-04-22 Thread Rajko M.
On Sunday 22 April 2007 09:51, StephenW wrote:
 I can no longer access su.
 I have only ever used one of two passwords.  Neither of them will work
 today.

 Suggestions for correction?

 winstephen

You can try this:
http://en.opensuse.org/Recover_Root_Password

-- 
Regards, Rajko.
http://en.opensuse.org/Portal 
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Fwd: Re: [opensuse] su password lost]

2007-04-22 Thread chika
 Original Message 
Subject: Re: [opensuse] su password lost
From:[EMAIL PROTECTED]
Date:Sun, April 22, 2007 11:22 pm
To:  James Knott [EMAIL PROTECTED]
--

 StephenW wrote:
 I can no longer access su.
 I have only ever used one of two passwords.  Neither of them will work
today.

 Suggestions for correction?

 winstephen

 You would normally use the root password, unless you're trying to su to
another user.  If you've forgotten the root password, it is possible
to remove or replace the existing root password, by booting from a
rescue disk and manipulating the /etc/password and shadow files.
However, I have neven had a need to do that, so I can't speak from
experience.


 --
 Use OpenOffice.org http://www.openoffice.org
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

if u don't have a rescue disc such as knoppix, etc

 your grub isnt locked
do this
1. choose the Failsafe -- openSUSE 10.2 option (it must be the last
option if u don't touch the /boot/grub/menu.lst) when u face the grub
start
2. press e
3. highlight the line with kernel word just like this:
kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/sda3 vga=normal
showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0
edd=off 3 

then edit it till like this
kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/sda3 single
init=/bin/bash
4. after it done press b
5. in short time you will be on root prompt xxx#
6. then do this passwd for new root's password
7. or u can do this vi /etc/shadow edit the strange string between
root:@[EMAIL PROTECTED]@#%FDFAFADFW!#$#$#234123:
till become
root::

hope it will work 4 u

btw i first and last time i try on debian etch it doesn't work. i will
try on openSuse 10.2 (whoaaa  yess.it worked)


cheers,


tambun









-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re:[opensuse] su password lost

2007-04-22 Thread riccardo35
On Sun 22 Apr 2007 16:54, [EMAIL PROTECTED] wrote:
 If you've forgotten the root password, it is possible
 to remove or replace the existing root password, by booting from a
 rescue disk and manipulating the /etc/password and shadow files.

Start the rescue system.
mount your root partiton on /mnt
cd /mnt/etc and vi shadow
delete everything on the root line between the first 2 colons,
that was your old password.
sync 
reboot
You will be able to enter a new password when you reboot.
If you are not prompted for one, log in as root, with no
password, and do passwd.
..

friendly greetings



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] su password lost

2007-04-22 Thread Aaron Kulkis

StephenW wrote:

I can no longer access su.


Then you have no access to root.

By the way, it's not the su password, it's the password for the
root account




I have only ever used one of two passwords.  Neither of them will work today.

Suggestions for correction?


(1). use a recovery disk

(2).  mount your root partition as a non-root filesystem.


(3). Use your favorite editor (vi, emacs, whatever) to edit the
file {mountpoint}/etc/passwd and on the line that starts:
root:

change it from something like either of these lines:

root:x:0:0:root:/root:/bin/bash
or
root:2HxFgnYkt7:0:0:root:/root:/bin/bash

to
root::0:0:root:/root:/bin/bash

This wipes out the password field (the characters between
the 1st and 2nd ':' characters).

(4) If the password field was like in the first example (an x),
then ALSO do step (4a).


(4a) Use your favorite editor (vi, emacs, whatever) to edit the
file {mountpoint}/etc/shadow and on the line that starts:

then change the line that starts with root
to
root

(that's 8 ':' characters).

(5) reboot the system (WITHOUT the rescue disk), and then
(6) login to root
for the password, type nothing and just hit the return key.

(7) now that you are logged in as root, type the command

# passwd

this will allow you to change the password

(8) This is THE MOST IMPORTANT PASSWORD ON THE SYSTEM

REMEMBER YOUR ROOT PASSWORD!


MAKE IT SOMETHING THAT YOU *NEVER* NEED TO WRITE DOWN
(as usual, don't use the names of your pets, relatives,
cars, or anything else which could be guessed by someone
who knows you).


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]