LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-24-2005, 09:38 PM   #1
h3htimo
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
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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.

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

Original Poster
Rep: Reputation: 0
thanks alot
 
Old 10-24-2005, 10:47 PM   #4
h3htimo
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
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
since you can get to files go to /etc/inittab
there is a line like
id:3:initdefault:

change the 3 to a 1
 
Old 10-25-2005, 12:05 AM   #6
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,852

Rep: Reputation: 260Reputation: 260Reputation: 260
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.
 
  


Reply


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


All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration