LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-29-2004, 01:21 PM   #1
amanjsingh
Member
 
Registered: Mar 2004
Location: New York, USA
Distribution: Debian, Ubuntu
Posts: 71

Rep: Reputation: 15
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
 
Old 03-29-2004, 01:27 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Yeah, right :}
 
Old 03-29-2004, 01:31 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
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.
 
Old 03-29-2004, 01:33 PM   #4
nethbar
Member
 
Registered: Oct 2003
Location: Springfield, MO
Distribution: Ubuntu, IPCop
Posts: 33

Rep: Reputation: 15
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"?
 
Old 03-29-2004, 02:45 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
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
 
Old 03-29-2004, 11:20 PM   #6
amanjsingh
Member
 
Registered: Mar 2004
Location: New York, USA
Distribution: Debian, Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 15
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
 
Old 03-29-2004, 11:38 PM   #7
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

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


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
Can you specift password on SSH command line? The_JinJ Linux - Newbie 4 07-26-2005 05:55 AM
Command Line Password Check jedediah Linux - Security 4 12-09-2004 03:01 PM
Command-line 'adduser': password not hashing Talesin Fedora 0 10-08-2004 08:19 PM
command line to set a password to a new userid myhato Linux - Security 3 08-19-2004 11:46 PM
written command line password generator lepricaun Programming 6 08-11-2004 12:36 AM


All times are GMT -5. The time now is 10:59 AM.

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