Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
|
|
07-09-2006, 03:02 AM
|
#1
|
LQ Newbie
Registered: Sep 2005
Posts: 4
Rep:
|
how to know your root password
Hi, I know there's a way to change the root password in linux. My question is, is possible to just find out the root password? I just want to know the password. Dont want to reset it.
thanks
|
|
|
07-09-2006, 03:21 AM
|
#2
|
Member
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271
Rep:
|
There is a way, but you need to be the root user to do it. All the user accounts are listed in /etc/passwd but each account's password is one-way hashed inside /etc/shadow. Both files *must* be only readable by root for acceptable security.
If you have root access to the machine you can get a cracking software with a decent dictionary and have it work on /etc/shadow. Of course your results will vary depending on the complexity of the passwords and the dictionary you use.
For a decent password (i.e. 10-12 char, mixed alphanumeric+special characters) it WILL take a VERY long time to crack but you can always try
PS. This is sort of *common* knowledge, so I hope no one will feel threatened by this post. LOL
|
|
|
07-09-2006, 05:16 AM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Quote:
Originally Posted by arviin
Hi, I know there's a way to change the root password in linux. My question is, is possible to just find out the root password? I just want to know the password. Dont want to reset it.
thanks
|
Are you the owner or administrator of the computer? If so how come you do not know your own root password?
|
|
|
07-09-2006, 05:19 AM
|
#4
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
Quote:
Originally Posted by arviin
Hi, I know there's a way to change the root password in linux. My question is, is possible to just find out the root password? I just want to know the password. Dont want to reset it.
thanks
|
this is called "password cracking". search for it
|
|
|
07-09-2006, 08:42 AM
|
#5
|
LQ Newbie
Registered: Sep 2005
Posts: 4
Original Poster
Rep:
|
reddazz, no I don't own it. Just want to know the password so that I can edit its iptables. If this can be done without loging in as root, then I dont need the password anymore.
|
|
|
07-09-2006, 02:14 PM
|
#6
|
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450
Rep:
|
Quote:
Originally Posted by arviin
reddazz, no I don't own it. Just want to know the password so that I can edit its iptables. If this can be done without loging in as root, then I dont need the password anymore.
|
Learn about sudo.
|
|
|
07-09-2006, 09:55 PM
|
#7
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
If you do not own or administer the system, then you should get approval from those who do before attempting to modify the firewall. Cracking the admin passwords on a system that you do not own is a really good way to get into a lot of trouble.
|
|
|
All times are GMT -5. The time now is 01:34 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
|
|