Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-24-2005, 09:38 PM   #1
LQ Newbie
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
changing init level

im kinda new to linux.. ive used mandrake and fedora.. and im on knoppix right now.. but im trying to install gentoo... the problem is i didnt set my root password and i cant log on when im in runlevel 3.. is there a way to setup the bootloader to make linux load at level 1? i cant change anything even from knoppix... its all locked unless you are root... i use the grub bootloader... thanks
Old 10-24-2005, 10:06 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I found this after a bit of googling:

Step by Step instruction to change passwd of root
Submitted by paresh_atlas on Wed, 05/11/2005 - 07:42.

Here are the all steps to change password for root in linux:
1)when u reached at the grub screen press 'e' on linux
2)line which contains the word 'kernell' press 'e'
3)go to end of that line and write 'linux single'
4)the press 'esc' twice and press 'b' to reboot the system
5) now wait for the prompt u get, write easy command there:
passwd root
it will ask to enter new password for root

I hope this will help u.

Paresh (iamnothing)
Old 10-24-2005, 10:24 PM   #3
LQ Newbie
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
thanks alot
Old 10-24-2005, 10:47 PM   #4
LQ Newbie
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
wow.. i was so excited at first.. but when i tried that.. it didnt work.. it keeps entering runlevel 3.. i have no idea why... what exactly should the code look like?? heres what it is now.. i can get to it from here but i cant change the bootloader files...
kernel /kernel-2.6.12-gentoo-r6 root=/dev/hda3
where should i put the one.. or single.. or whatever??
Old 10-24-2005, 11:43 PM   #5
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
since you can get to files go to /etc/inittab
there is a line like

change the 3 to a 1
Old 10-25-2005, 12:05 AM   #6
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,519

Rep: Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014
In knoppix you launch a console, type "passwd root" enter, enter a root password, again, type "su", type the root password you made. Now you are root in knoppix. You can do this in any linux, or edit /etc/passwd file.

To run init type "/sbin/init 1"

Or, you can type "sudo /sbin/init 1"

Last edited by AwesomeMachine; 10-25-2005 at 12:08 AM.


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
Different Resolution init level 3 ? utw-mephisto Red Hat 4 06-19-2005 07:38 AM
Init-level 5 but X11 don't start sjoe Linux - Newbie 9 09-20-2004 09:05 AM
init level 5 for remote X but not local gw1500se Mandriva 0 05-31-2004 03:54 PM
Where can I find the logs for the various init level? davidas Debian 2 04-18-2004 03:26 AM
init level settings rufius Linux - General 1 04-29-2003 07:57 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:48 AM.

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