LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   going to root without password thru command line (http://www.linuxquestions.org/questions/linux-newbie-8/going-to-root-without-password-thru-command-line-163821/)

amanjsingh 03-29-2004 02:21 PM

going to root without password thru command line
 
hey guys,

if u cud tell me the procedure thru commandline, suppose if i dont hav access to the GUI, and can access jus the commandline, then wat do i do to get into the root if i dont know the password???

the commands like init 5 doesnt work...

thanx anyways for ur kind support. this is a nice place for linux learners, great place, great people.

regards
aman

Tinkster 03-29-2004 02:27 PM

Yeah, right :}

acid_kewpie 03-29-2004 02:31 PM

you can't directly if you don't know the password.... when your system boots up, you need to add a "1" or "single" to the boot options, then it will load into runlevel 1, where you will automatically be root. it is not possible any other way (without setting it up in the first pace, which would require root permissions...) as that would totally undermine the security.

nethbar 03-29-2004 02:33 PM

uhhhhhh
 
As far as I know, yer skroowed amanjsingh. If you don't know the root account password (or are you just talking about "/" in the file tree?) I suppose there are those with the hacker chops to do so but for mere mortals like us, you'll just have to re-install.

Am I off base here guys?

For the GUI, have you tried typing "startx"?

Tinkster 03-29-2004 03:45 PM

Quote:

Originally posted by acid_kewpie
you can't directly if you don't know the password.... when your system boots up, you need to add a "1" or "single" to the boot options, then it will load into runlevel 1, where you will automatically be root.
Not in Slackware ;} ... only in the by default
insecure things, like MDK and RH...

You'd have to use the init=/bin/bash thing in Slack :)



Cheers,
Tink

amanjsingh 03-30-2004 12:20 AM

thanx a lot guys, i know wat to do now, :)

REINSTALL...

thanx for ur support. this is a nice place with nice ppl like u.

regards
aman

liamoboyle 03-30-2004 12:38 AM

Sounded like linuxlala covered how to solve your problem in the other post, without reinstalling.


All times are GMT -5. The time now is 01:40 PM.