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.
Unless it was deleted, any default installation of FC should have an /etc/shadow file. I can't even think of a good reason to remove it in a network environment. (You still want root to be able to login locally to perform maintenance, etc.)
If it's been deleted, my best suggestion is to reinstall your system. You may be able to recreate the file using the pwconv command, but I haven't tested that on a system with a shadow-format passwd file. On the other hand, if your system is broken (missing shadow) then I doubt it would do any harm.
pwconv isnot there..I have no backup too..
Just want to know if copying the /etc/shadow file from remote system for default will do the trick.
If pwconv is not there..How to install that..pls help with right alternatives
/etc/shadow is a part of the system authentication system. It will need proper entries for each account on the system. Copying from another system would only work if they had identical users and passwords. Not having a backup of a system critical file is rather bad. pwconv is normally in /usr/sbin, at least on my systems.
I went through the above method to get back the /etc/shadow file.
But one line confuses me:
[]
1) Mount partitions in read write mode
Since / is currently mounted read-only and many disk partitions have not been mounted yet, you must do the following to have a reasonably functioning system.
# mount -rw -o remount /
Code:
Do not forget to (re)mount your rest of all your partitions in read/write (rw) mode such as /usr /var etc (if any)
[/]
What does the last two lines says..Does it says I have to run the command repeatedly
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.