Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-02-2006, 02:50 PM
|
#1
|
Member
Registered: May 2006
Distribution: Slackware, DragonFly
Posts: 233
Rep:
|
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
|
|
|
06-02-2006, 02:53 PM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539
Rep:
|
if one could access the root and other users' passwords, noone would use linux.
theres no way to retrieve the root password
|
|
|
06-02-2006, 03:10 PM
|
#3
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
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,
|
|
|
06-02-2006, 03:14 PM
|
#4
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539
Rep:
|
nice walkthrough marozsas
|
|
|
06-02-2006, 03:32 PM
|
#5
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
hey nadroj,
I hope shifter is not a bad guy trying to crack someone else's machine
see'ya,
|
|
|
06-02-2006, 03:34 PM
|
#6
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539
Rep:
|
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!
|
|
|
06-02-2006, 04:08 PM
|
#7
|
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460
Rep:
|
Or you could edit the files to make one of the normal users with a known password into a root user, I suppose..
|
|
|
06-02-2006, 10:52 PM
|
#8
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
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....
- Don't have root password
- Change files to give user root privleges
- You need root pass to change those files
Getting a little cyclic, there...
Best way is the live cd route mentioned earlier
|
|
|
06-03-2006, 06:42 AM
|
#9
|
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460
Rep:
|
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.
|
|
|
06-03-2006, 06:55 AM
|
#10
|
Member
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 173
Rep:
|
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)
|
|
|
06-03-2006, 07:29 AM
|
#11
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Rep:
|
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
|
|
|
06-03-2006, 10:08 AM
|
#12
|
Senior Member
Registered: Jan 2004
Posts: 1,420
Rep:
|
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...
|
|
|
06-04-2006, 11:32 PM
|
#13
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
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.
|
|
|
06-05-2006, 12:28 AM
|
#14
|
Member
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753
Rep:
|
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?
|
|
|
06-05-2006, 12:35 AM
|
#15
|
Member
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Rep:
|
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?
|
|
|
|
All times are GMT -5. The time now is 10:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|