LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-11-2008, 07:09 PM   #1
mpriewe
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
root password


how do Ifind the root password
 
Old 02-11-2008, 07:17 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
Where do you expect to find it? It's not stored in the system anywhere, at least not in the explicit form. If you lose your root password, there's no way to recover it, you can only reset it, replacing with a new one.
 
Old 02-12-2008, 04:42 AM   #3
akuma_linux
Member
 
Registered: Aug 2006
Distribution: Ubuntu, CentOS
Posts: 31

Rep: Reputation: 15
If it's Ubuntu you are using then there is no root password by default. You can set it using the command :

Code:
sudo passwd
 
Old 03-12-2008, 03:12 PM   #4
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
Ubantu pword

No wonder Ubuntu is such a pain to install
 
Old 03-12-2008, 07:17 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
All Unix/Linux passwds (inc root) are stored using one-way encryption. As mentioned, you can't (usually) decrypt it.
FYI, they're usually in /etc/shadow.
 
Old 03-12-2008, 08:25 PM   #6
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Quote:
Originally Posted by Fred Caro View Post
No wonder Ubuntu is such a pain to install
Ubuntu is easy to install, double click on the install icon and follow the prompts, not exactly rocket science, and ubuntu uses sudo for root access
 
Old 03-12-2008, 09:56 PM   #7
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
Ok I'm going to be the bad guy here, why would you have your first post (Oh by the way welcome to LQ ) be about wanting to know where to find the root passwd? I kind of have a red flag going up about now.
 
Old 03-20-2008, 09:33 PM   #8
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
ubantu/ root password/easy to install

Yes it is easy to install but ( the partitioner being particularly useful) the usual root and user passwords do not seem to operate; notwithstanding that it is supposed to be one of the most user friendly options of linux going- maybe more to do with publicity than substance. Windows has the use of user limitation, ie, so intrusions do not affect your system so why dilute this on Ubuntu?
 
Old 03-21-2008, 12:09 AM   #9
prad77
Member
 
Registered: Mar 2008
Posts: 101

Rep: Reputation: 15
It has to decypted to find it back I guess. dont knwo if it can succeed.
resetting it will save lot of time and energy.

Fedora Development

Last edited by prad77; 04-17-2008 at 04:19 AM.
 
Old 03-21-2008, 12:48 AM   #10
Slokunshialgo
Member
 
Registered: Jan 2006
Distribution: Ubuntu 9.04, Fedora 10
Posts: 76

Rep: Reputation: 17
If you have physical access to the computer, it is possible to change the password. If you do not, you are SOL. The passwords are stored using a hash, which is impossible for you to get the original password from (encryption would mean you can go both ways, hashing in one-way). It simply would have to hash the entered password, and compare it to the stored hash, and see if it works or not.

As for Ubuntu, I've used many a distro before getting to it, found it too simplistic at one point, tried it again later on, and have been loving it. I got sick of having to search the net for random packages just to get the one little program to install, let alone compiling things all the time. Although I will admit I realized a major security flaw in its ease-of-use setup earlier, namely that when you sudo open a program once, you have about 5 mins or so (never timed it) before you need to enter the password again, which seems to also go into terminal sessions. Could mean that some malicious software could easily get on, login as root (sudo su, anyone?) and wreak havoc.
 
Old 03-21-2008, 04:06 AM   #11
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I'm not sure what your after here?
 
Old 03-21-2008, 04:40 AM   #12
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
root

You can boot the the system with a rescue system or a Live CD - either Knoppix or the rescue CD/DVD from distributions like RedHat/Fedora, Ubuntu, etc. Then you can change the password by some copy-pasting from another valid password file or chrooting and resetting the password. You will not be able to find a clear text version of the root password (unless the system administrator is a dummy).

All this needs physical access to the computer.

If you don't have physical access to the PC, then the request is really dubious.

Regards,
SIMP
 
Old 03-21-2008, 07:02 AM   #13
smus
Member
 
Registered: Nov 2005
Location: Turkey
Distribution: Suse
Posts: 104

Rep: Reputation: 16
hi,

by the way the password inside box always stored in hash equivalent this means if your enter the password system will hash the password and check if the hash values are equal if so granted otherwise denied this means you can only reset by single user mode or you can directly format it.

regards,
 
  


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 to change root password without knowing the grub password ramesh.mimit Red Hat 8 10-15-2011 06:12 AM
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
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 10:59 AM


All times are GMT -5. The time now is 04:20 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration