Changes to Resetting root password in OSS10?
Hi OSS10 friends, Im new to the list. Also, a newby to OSS10 here (and Linux since January). I just installed the OSS10 x86_64-GM on a new machine (looks great). Kick my butt, but I was'nt concentrating and forgot the root passwd. No problem, I booted with the setup CD1 and went into Rescue system and did as many times before the editing of passwd and shadow. This time with OSS10 (as in SuSE 9.3 I noticed as well), when rebooting and going into shell as normal user, the 'su' did not prompt for a password as before (which was just an 'enter'). The message 'su: incorrect password' was delivered immediately after su was entered. Has this 'local vulnerability' been closed? It was quite useful! What now? Maybe I forgot how it was done. I did it as follows: Booted 'Rescue' logged in as 'root' (no password reqd for rescue system, OK). mkdir /sda3 mount /dev/sda3 /sda3 cd /sda3/etc vi passwd edited: root:x:0:0:root:/root:/bin/bash to root::0:0:root:/root:/bin/bash esc : wq vi shadow edited: root:$2a.....mRK:13040:0:10000:::: to root:::: esc : wq (the amount of :'s make no difference it seems) Then I rebooted and logged on as normal user in KDE and console. I also tried with Ctrl-Alt F2's shell and a shell in Crtl-ALt-F7's KDE to log in as normal user and su to root. Same problem. What changed since it worked in SuSE 8.3 (I think), or did I miss something? Incidentally, the method on http://www.novell.com/coolsolutions/trench/15629.html is not complete. The rescue system's passwords are deleted, not the wanted system. The mounting of the original /dev/sda3 to a /mnt is not done, and /etc/shadow is edited (cd /etc). Confused, Lando
On Monday 24 October 2005 15:11, LLLActive@GMX.Net wrote:
Im new to the list. Also, a newby to OSS10 here (and Linux since January). I just installed the OSS10 x86_64-GM on a new machine (looks great). Kick my butt, but I was'nt concentrating and forgot the root passwd. [..]
Why make things complicated? Just start the rescue-system, mount your partitions, chroot to your installed system and set a new password with passwd. hth, -- Oliver Koch Systems Administrator Institute of Computational Mathematics Altenbergerstr. 69 Johannes Kepler University Linz 4040 Linz, Austria oliver.koch@numa.uni-linz.ac.at Tel. +43 70 2468 9166
Hi, On Mon, 24 Oct 2005, Oliver Koch wrote:
On Monday 24 October 2005 15:11, LLLActive@GMX.Net wrote:
Im new to the list. Also, a newby to OSS10 here (and Linux since January). I just installed the OSS10 x86_64-GM on a new machine (looks great). Kick my butt, but I was'nt concentrating and forgot the root passwd. [..]
Why make things complicated? Just start the rescue-system, mount your partitions, chroot to your installed system and set a new password with passwd.
Even more easy: boot into runlevel 1 and call "passwd". Cheers -e -- Eberhard Moenkeberg (emoenke@gwdg.de, em@kki.org)
Monday 24 Oct 2005 20:12 samaye Eberhard Moenkeberg alekhiit:
Even more easy: boot into runlevel 1 and call "passwd".
Can you please tell me how to do this with my SUSE 10.0 installation? I mean, booting into runlevel 1? Shriramana.
On Monday 24 October 2005 21:08, Shriramana Sharma wrote:
Can you please tell me how to do this with my SUSE 10.0 installation? I mean, booting into runlevel 1?
Write single (without the '') when that nice boot screen shows up then press enter. -- Damian Mihai Liviu Phone: +40741226993 URL: http://liviudm.blogspot.com
Monday 24 Oct 2005 23:45 samaye Damian Mihai Liviu alekhiit:
Write single (without the '')
There were no ''
when that nice boot screen shows up
Which "nice boot screen"? You mean the GRUB screen or the one with the HDD, keyboard, PCI card and PC images?
On Monday 24 October 2005 21:38, Shriramana Sharma wrote:
There were no ''
Sorry, I've edited the message and forgot to change that.
Which "nice boot screen"? You mean the GRUB screen or the one with the HDD, keyboard, PCI card and PC images?
The GRUB screen -- Damian Mihai Liviu Phone: +40741226993 URL: http://liviudm.blogspot.com
Tuesday 25 Oct 2005 00:12 samaye Damian Mihai Liviu alekhiit:
The GRUB screen
I have a graphical GRUB boot menu with multi-OS boot (SUSE and WinXP). How do I access the text mode, since the command you seem to advise is applicable only at the GRUB prompt?/
Am Montag 24 Oktober 2005 21:36 schrieb Shriramana Sharma
I have a graphical GRUB boot menu with multi-OS boot (SUSE and WinXP). How do I access the text mode, since the command you seem to advise is applicable only at the GRUB prompt?/
Hi Shriramana; press F2 (or F3) at the boot screen and add your additions. (To have always a text boot menu: comment out "gfxmenu....") But I'm afraid you will end up with a line Give root password to login: -- mdc
You may try to press esc when GRUB comes, then press e to edit your boot
parameters.Add these
linux 1 init=/bin/sh
This should do the work.Or maybe boot with a live-cd and edit /etc/shadow...
On 10/24/05, meister@netz00.com
Am Montag 24 Oktober 2005 21:36 schrieb Shriramana Sharma
: I have a graphical GRUB boot menu with multi-OS boot (SUSE and WinXP). How do I access the text mode, since the command you seem to advise is applicable only at the GRUB prompt?/
Hi Shriramana;
press F2 (or F3) at the boot screen and add your additions. (To have always a text boot menu: comment out "gfxmenu....") But I'm afraid you will end up with a line Give root password to login:
-- mdc
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-help@opensuse.org
Hi, On Mon, 24 Oct 2005, Shriramana Sharma wrote:
Monday 24 Oct 2005 20:12 samaye Eberhard Moenkeberg alekhiit:
Even more easy: boot into runlevel 1 and call "passwd".
Can you please tell me how to do this with my SUSE 10.0 installation? I mean, booting into runlevel 1?
Just give "1" as a boot parameter. A pure number is interpreted as runlevel. Cheers -e -- Eberhard Moenkeberg (emoenke@gwdg.de, em@kki.org)
On Mon, 2005-10-24 at 23:38 +0530, Shriramana Sharma wrote:
Monday 24 Oct 2005 20:12 samaye Eberhard Moenkeberg alekhiit:
Even more easy: boot into runlevel 1 and call "passwd".
Can you please tell me how to do this with my SUSE 10.0 installation? I mean, booting into runlevel 1?
Shriramana.
At a command prompt type init 1 or if booting the machine just add the parameter 1 to the boot prompt. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
On Monday 24 October 2005 8:42 am, Eberhard Moenkeberg wrote:
Even more easy: boot into runlevel 1 and call "passwd".
Sorry, SUSE Linux is more secure than that. Runlevel 1 does NOT give a root prompt without requiring a root password like other distros. Kirk Coombs
Hi, On Mon, 24 Oct 2005, Kirk Coombs wrote:
On Monday 24 October 2005 8:42 am, Eberhard Moenkeberg wrote:
Even more easy: boot into runlevel 1 and call "passwd".
Sorry, SUSE Linux is more secure than that. Runlevel 1 does NOT give a root prompt without requiring a root password like other distros.
This would be something very new... But if you are right, the boot parameter "init=/bin/sh" would make it through this fence. Cheers -e -- Eberhard Moenkeberg (emoenke@gwdg.de, em@kki.org)
On Monday 24 October 2005 20:49, Eberhard Moenkeberg wrote:
Sorry, SUSE Linux is more secure than that. Runlevel 1 does NOT give a root prompt without requiring a root password like other distros.
This would be something very new...
Not really, it's been like that for ages. The reason is that runlevel S runs /sbin/sulogin from inittab
Kirk Coombs
Sorry, SUSE Linux is more secure than that. Runlevel 1 does NOT give a root prompt without requiring a root password like other distros.
So what? Just use 'init=/bin/bash' and you have a shell. Philipp
Another SOLUTION - thanx Eberhard! Will try it as well. On Mon, 2005-10-24 at 16:42 +0200, Eberhard Moenkeberg wrote:
Hi,
On Mon, 24 Oct 2005, Oliver Koch wrote:
On Monday 24 October 2005 15:11, LLLActive@GMX.Net wrote:
Im new to the list. Also, a newby to OSS10 here (and Linux since January). I just installed the OSS10 x86_64-GM on a new machine (looks great). Kick my butt, but I was'nt concentrating and forgot the root passwd. [..]
Why make things complicated? Just start the rescue-system, mount your partitions, chroot to your installed system and set a new password with passwd.
Even more easy: boot into runlevel 1 and call "passwd".
Cheers -e
participants (11)
-
Anders Johansson
-
Damian Mihai Liviu
-
Eberhard Moenkeberg
-
Ilker
-
Ken Schneider
-
Kirk Coombs
-
LLLActive@GMX.Net
-
meister@netz00.com
-
Oliver Koch
-
Philipp Thomas
-
Shriramana Sharma