LinuxQuestions.org
Review your favorite Linux distribution.
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 11-09-2011, 09:38 PM   #1
dngongo
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
other users password


After installing Fedora, I had created 2 additional users. How do I retrieve their passwords which I have forgotten.
 
Old 11-09-2011, 09:42 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
I'm not sure that you do/can. I always just reset the password with
Code:
passwd <username>
If you could, what would that say about Linux security?

(Elaboration)

The password on my Ubuntu system, for example, is stored as SHA-512. There is no plain text password. You would have to crack the SHA-512 key. /etc/shadow contains the line for my password/login:

Code:
jameson:$6$C05V0Q90$0105XDS0H000.0H0004L0A00IIQL3000Z3O0X24E000001T090000B0M07000K46Q000Z48I0L0G4008T0GB0/:15140:0:99999:7:::
Here, there are several fields delimited by the : character. The second field contains three sub-fields, itself, delimited by $. 6 indicated SHA-512, the second field is a the 'salt' and the third field is the SHA-512 sum itself. (Note: that's not actually my shadow entry, I changed it for these purposes.)

(Edit 2):

Note: You could theoretically run a brute-force cracker (John The Ripper does not support SHA-512), but if you have any recent encryption schema (SHA-512, for example), it would take an eternity. E.g. in practice, it's not possible.

Last edited by jhwilliams; 11-09-2011 at 09:58 PM.
 
Old 11-09-2011, 09:43 PM   #3
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Rep: Reputation: 29
I can show you the answer, but i'd like to know what steps you've done to try to solve this yourself. I ask this, because i dont use, and never have used fedora, and i found an answer withing about half a second...
 
0 members found this post helpful.
Old 11-09-2011, 10:37 PM   #4
dngongo
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
I tried that command and got:
"only root can specify user name" what does that mean?
 
Old 11-09-2011, 10:39 PM   #5
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by dngongo View Post
I tried that command and got:
"only root can specify user name" what does that mean?
It means you need to run the command as root:
Code:
sudo passwd username
Or alternately, login as root and then do
Code:
passwd username
 
1 members found this post helpful.
Old 11-10-2011, 11:45 PM   #6
dngongo
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
when I login, does it means I am logged on as root automatically?
If not not, how do I? What I really want is to remove those 2 others users and as I said, i do not remember their passwd.
 
Old 11-11-2011, 12:06 AM   #7
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
No you are not logged in as root by default.
When you installed fedora, and set up the user account, you would have had an option to add the user to the administrators group,jhwilliams if you did so. then use(as jhwilliams suggested):
Code:
sudo passwd $username
If you did not add the user to the administrators group use (to elaborate on jhwilliams suggestion)
Code:
su -
and enter the root password you set during install.

I think you really need to do some reading on, well Linux in general. I would suggest http://rute.2038bug.com/index.html.gz as a starting point.

Quote:
What I really want is to remove those 2 others users and as I said, i do not remember their passwd.
When posting, please ask the question you want answered. As a user can't remove themselves from a system. This has to be done by root, and has nothing to do with recovering passwords.
Read the link I mentioned above, specifically http://rute.2038bug.com/node14.html.gz for information on users and groups.
 
  


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
Help with Apache: free access from lan users and password access to wan users... how? maginotjr Linux - Server 4 01-01-2011 12:08 PM
How to assign to all users the same password hansos Linux - Server 2 07-22-2008 08:58 AM
users password problem soumalya Linux - Security 11 08-27-2007 08:20 AM
NO password for users aranes SUSE / openSUSE 3 11-06-2004 06:27 PM
Cant set password for new users ribbones Linux - General 1 09-03-2003 11:56 AM


All times are GMT -5. The time now is 02:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration