LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-09-2006, 03:02 AM   #1
arviin
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
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
 
Old 07-09-2006, 03:21 AM   #2
Notwerk
Member
 
Registered: Apr 2005
Location: Jordan
Distribution: Debian (Sarge), Ubuntu (6.06)
Posts: 271

Rep: Reputation: 31
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
 
Old 07-09-2006, 05:16 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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?
 
Old 07-09-2006, 05:19 AM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
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
 
Old 07-09-2006, 08:42 AM   #5
arviin
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 07-09-2006, 02:14 PM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 79
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.
 
Old 07-09-2006, 09:55 PM   #7
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
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.
 
  


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
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 hariiyer Linux - Security 2 11-16-2004 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:34 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