Linux - NewbieThis 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
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.
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.
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:
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 08:58 PM.
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...
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.