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 08-28-2008, 07:23 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
No /etc/shadow file on fedora?Stucked !!!


I dont see any /etc/shadow file on my machine?
How Can I bring it back?
 
Old 08-28-2008, 09:15 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
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.)
 
Old 08-28-2008, 10:25 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I dont know how it got deleted..But I need your Help to get it back?
 
Old 08-28-2008, 11:06 AM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
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.
 
Old 08-28-2008, 11:40 AM   #5
Fantasio
Member
 
Registered: Nov 2007
Location: Vinsobres - Drome - France
Distribution: SuSE Linux 11.3
Posts: 152

Rep: Reputation: 19
you 've an alternative, rebuild a new shadow file with user provided from /etc/passwd

Ask your users to reset their password.

Did you have a backup strategy ?
If yes, cool, restore the file and reboot the computer...
 
Old 08-29-2008, 12:17 AM   #6
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
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
 
Old 08-29-2008, 12:23 AM   #7
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
can I use Rescue Disk Option and get back the /etc/shadow file?
 
Old 08-29-2008, 01:21 AM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
/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.
 
Old 08-29-2008, 03:05 AM   #9
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I have only two users on my system for the project work.
Will copying from other system will do the needful?
 
Old 08-29-2008, 03:07 AM   #10
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
http://www.cyberciti.biz/tips/recove...word-file.html

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
 
Old 08-29-2008, 04:36 AM   #11
Fantasio
Member
 
Registered: Nov 2007
Location: Vinsobres - Drome - France
Distribution: SuSE Linux 11.3
Posts: 152

Rep: Reputation: 19
As you suggest try to use a copy from a remote computer, but take care to inject common users into your new /etc/shadow

In that case, you 'll recover common users such as nobody, ftp, ... finally, the command passwd will create missing users into the shadow file.
 
Old 08-29-2008, 05:30 AM   #12
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Then Whats the Right Solution?I dont want to re-install as it contains some critical projects.

If it would have been filesystem crash then I would have think for the same but its normal users login issue.

Pls Help with any alternative.
 
  


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
/etc/shadow file. BryMAy Linux - Security 10 08-22-2008 01:43 PM
Shadow file honey bee Linux - Newbie 4 01-05-2008 04:14 AM
shadow file os2 Linux - Security 3 10-18-2005 04:20 PM
shadow file stevee Linux - Security 1 10-07-2003 11:11 AM
shadow file? tjm Linux - Security 4 09-15-2003 05:23 PM


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