LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Closed Thread
  Search this Thread
Old 06-02-2006, 02:50 PM   #1
shifter
Member
 
Registered: May 2006
Distribution: Slackware, DragonFly
Posts: 233

Rep: Reputation: 30
obtaining the root password


I have a little factory with Slackware server. I also use the Gnu/Linux systems, and my sysadmin losed the root password, and the passwords of my clients.
How can I have the root privilegies and to obtain the root and the users (my clients) passwords?

Thanks,
Shifter
 
Old 06-02-2006, 02:53 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
if one could access the root and other users' passwords, noone would use linux.
theres no way to retrieve the root password
 
Old 06-02-2006, 03:10 PM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
To gain root privilegies you can reset the root's password.
You need to boot in using a liveCD, mount the / partition somewhere, and remove the field password for root from the file /etc/shadow.

After that, boot your system; root has no password anymore.

You can reset the users's password by issuing the command "passwd username" as root and installing a new password.

There is no way to figure out what was the previous password.
Well, there is one way: guessing !

There is a good program to do that: John the Ripper. It uses a dictionary to guessing passwords.

http://www.openwall.com/john/pro/

I hope this can help you,
 
Old 06-02-2006, 03:14 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
nice walkthrough marozsas
 
Old 06-02-2006, 03:32 PM   #5
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
hey nadroj,

I hope shifter is not a bad guy trying to crack someone else's machine

see'ya,
 
Old 06-02-2006, 03:34 PM   #6
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60

well, the only way he could do this is if he had physical access to the machine. and if he does, then the person who owns the machine should have had better locks!
 
Old 06-02-2006, 04:08 PM   #7
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Or you could edit the files to make one of the normal users with a known password into a root user, I suppose..
 
Old 06-02-2006, 10:52 PM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by oneandoneis2
Or you could edit the files to make one of the normal users with a known password into a root user, I suppose..
That's a classic Catch 22 there....
  1. Don't have root password
  2. Change files to give user root privleges
  3. You need root pass to change those files
Getting a little cyclic, there...

Best way is the live cd route mentioned earlier
 
Old 06-03-2006, 06:42 AM   #9
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
You use a live CD to change the files that give the user root priveledges: It's much the same thing, only it doesn't run the (admittedly minor) risk of booting a computer with a root account that anybody can access: A password is still required.
 
Old 06-03-2006, 06:55 AM   #10
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 173

Rep: Reputation: 22
Don't forget about sshd!

As mentioned, boot with a CD and erase the password.

Be aware: If you are using the ssh deamon, remember to shutdown this service BEFORE boot with empty root password or block port 22.

If you run ssh deamon, anyone can enter at your computer.

Don't use empty root password, write it somewhere (in your wallet)
 
Old 06-03-2006, 07:29 AM   #11
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
if
your lilo is not "passwd locked"
then
at the lilo prompt add a word "single" to the end of the line, tehn you can boot into machine (i think it will be telinit1 )

then type "chpasswd", i have used this many times, in grub too
 
Old 06-03-2006, 10:08 AM   #12
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by marozsas
hey nadroj,

I hope shifter is not a bad guy trying to crack someone else's machine

see'ya,
Agreed, sounds a little fishy...
 
Old 06-04-2006, 11:32 PM   #13
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
OK, guys.

Looks like this person actually wants to hack the system.

This thread was posted by this poster.

Up to you if you want to help him screw the system he's hacking.

As far as I know, this ain't a hacking forum....

Last edited by cwwilson721; 06-04-2006 at 11:43 PM.
 
Old 06-05-2006, 12:28 AM   #14
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
Quote:
Originally Posted by shifter
I have a little factory with Slackware server. I also use the Gnu/Linux systems, and my sysadmin losed the root password, and the passwords of my clients.
How can I have the root privilegies and to obtain the root and the users (my clients) passwords?

Thanks,
Shifter
why isn't the sysadmin asking these questions? is it your own factory? or are you a employee there? did the sysadmin just quit without telling you the root password? where is Shifter?
 
Old 06-05-2006, 12:35 AM   #15
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Blog Entries: 1

Rep: Reputation: 79
For only 8 posts, he asks some really weird questions...
http://www.linuxquestions.org/questi...d.php?t=444664

wtf? If you add it all up, he needs a binary perl script to run on his factory Slackware server but he lost the root password? And this one is even stranger...
Quote:
Originally Posted by shifter
Can I create a executable program with sh script also?
 
  


Closed Thread


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 could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
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
Booting into Single User on MDK 9 asks for root password instead of booting into root acadcworks Linux - General 6 01-10-2006 07:51 AM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 02:29 AM
root password Old Guy Linux - Newbie 5 06-14-2003 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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
Open Source Consulting | Domain Registration