LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-13-2006, 03:58 PM   #1
hhhhhh
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
Talking Forgot password Suse Linux 10


I just installed Suse Linux 10 and forgot my logon password. Anything I can do to recover it or change it, or do I have to re-install?
 
Old 04-13-2006, 04:17 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
If you recall your root password, log in as root and reset the password from within Yast.

Welcome to LQ
 
Old 04-13-2006, 04:29 PM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
If you have forgotten your user password, login as root and change the users password e.g. "password username" and enter the new password when prompted. If its the root password, take a look here for a possible solution.

Last edited by reddazz; 04-13-2006 at 04:33 PM.
 
Old 04-13-2006, 04:54 PM   #4
Samoth
Member
 
Registered: Apr 2005
Distribution: Exherbo
Posts: 474
Blog Entries: 1

Rep: Reputation: 32
if ya forgot your root passwd then boot up a live cd(Pentoo comes to mind) and mount your Suse 10.0 partition. For example: "mount -t ext3(assuming you are using ext3) /dev/hda2(this will vary) /mnt/data(you have to create the mount point first)". Then type "chroot /mnt/data". next type "passwd" and enter your new passwd. If you dont know how to mount your partition post your filesystem type and partition layout and we will try to help. Cheers.

<<Samoth>>
 
Old 04-13-2006, 05:32 PM   #5
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
And there's also the (easiest) option of booting with "init=/bin/bash" which lets you become root without knowing the password and without chrooting. Works if your boot loader is not password protected.
 
Old 04-14-2006, 02:32 AM   #6
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 48
Quote:
Originally Posted by uselpa
And there's also the (easiest) option of booting with "init=/bin/bash" which lets you become root without knowing the password and without chrooting. Works if your boot loader is not password protected.
or "single"
 
Old 04-17-2006, 05:46 AM   #7
sc425000
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
boot in single mode and run this command
#passwd root
 
Old 09-27-2007, 12:09 AM   #8
baburajkr
LQ Newbie
 
Registered: Sep 2007
Posts: 6

Rep: Reputation: 0
Recover SUSE 10.0 password

Power on Machine
When boot menu comes press F2
In the Boot Option Type init=/bin/sh
A console will come
Type mount -a
Type passwd
Change password
reboot
 
Old 12-03-2007, 12:18 AM   #9
naveenth
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
hepl me

i can see boot option while booting so do i want to press F2 again to get the boot option .i try to log as single user but it is not work .i edited the boot strin to kernel/boot/vmlinuz-............./ a t the end of that 1 but it is not work can u tell me why is that.essiast way to log as roo ?
\
 
Old 06-03-2008, 05:49 PM   #10
jcdole
LQ Newbie
 
Registered: Apr 2006
Location: Saint-Jean-de-Luz. South West, Atlantic coast (France)
Distribution: SUSE 13.3 (Commercial)
Posts: 14

Rep: Reputation: 0
Sample does not work for me.

Have try this with success.


Sample for a SUSE LINUX 10.3
-----------------------------

We must know where reside /etc
For this sample, /etc reside in the root partition / ==> dev/hda3
( see /etc/fstab )

-----------------------------

1°) Boot with a live cd (Have done myself with Mandriva ONE 2008-Beta 1)

2°) Open a terminal
2-1 change to super user by su command
# su ( no need passwd )
2-2 start text editor in superuser mode from this terminal session
# kwrite

3°) Prepare mounting the suse linux partition where stand /etc (/dev/hda3)
3-1 edit /etc/fstab ( of the linux live cd session )
by opening file /etc/fstab
3-2 add mounting point for the suse linux partition where resides /etc by adding this line :
/dev/hda3 /media/suse_10-3_root_part ext3 default 1 2
(use syntax accordingly with your linux live cd)
3-3 save the modified file

4°) Open a new terminal
4-1 change to super user by su command
# su ( no need passwd )
4-2 change root password ( of the linux live cd session )
passwd root
> type new passwd : my_new_passwd
> retype new passwd : my_new_passwd
> password changed for user root
4-3 create the mounting point
# mkdir -p /media/suse_10-3_root_part
4-4 mount the partition
# mount -o dev, rw /dev/hda3

5°) Open a new terminal
5-1 change to super user by su command
# su ( no need passwd )
5-2 start a second editor session
# kwrite
5-3 edit the suse 10.3 shadow password file by openning
/media/suse_10-3_root_part/etc/shadow
5-4 search for user root where you see something like
root:,cslgv-elqdMcf,qzlku*ZEVNUF<@NDFLn,fvzeoiojų:14033::::::
5-5 in the first editor session open the linux live cd shadow password file by openning /etc/shadow
5-6 search for user root where you see something like
root:Mcf,qzlku*ZEVNQEPIUF<@NWXDFLMjGPRJ?:14033::::::
you know that the password is : my_new_passwd
then select Mcf,qzlku*ZEVNQEPIUF<@NWXDFLMjGPRJ?
then copy the selected text
5-7 return to the second editor session ( suse linux 10.3 /media/suse_10-3_root_part/etc/shadow file )
then select ,cslgv-elqdMcf,qzlku*ZEVNUF<@NDFLn,fvzeoiojų
then ask paste for obtening
root:Mcf,qzlku*ZEVNQEPIUF<@NWXDFLMjGPRJ?:14033::::::
5-8 save the file ( suse linux 10.3 /media/suse_10-3_root_part/etc/shadow file )

6°) close all
6-1 close all editor
6-2 close all terminal
6-2 close all other window

7°) Open a terminal
7-1 change to super user by su command
# su ( no need passwd )
7-2 umount suse linux /media/suse_10-3_root_part
# umount /dev/hda3

8°) restart the computer
8-1 eject live cd CDROM
8-2 stop or restart computer
8-3 Log suse 10.3 with root password : my_new_passwd
 
  


Reply

Tags
linux, passwd, password, root, suse


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 05:11 AM
i forgot my password on red hat linux Joe120 Linux - Security 5 01-25-2006 07:39 AM
forgot root password:- Suse Linux 10.00 boxerdes Suse/Novell 1 01-18-2006 03:25 PM
Forgot root password for Redhat Enterprise linux geordzilla Linux - Newbie 6 12-20-2005 02:43 AM
forgot username and password for SuSE 9.3 Pro bmims Linux - Newbie 1 08-20-2005 08:59 PM


All times are GMT -5. The time now is 07:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration