LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 05-12-2012, 05:51 AM   #1
Issa1
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
Syncing shadow file with passwd file


Hi all,
I have problem that shadow file does not contain all users present in passwd file, is there any way to sync them so that all users are same in both files

Thanks and regards
 
Old 05-12-2012, 06:34 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
welcome to the forum!!

They are the same on my system----do you know how yours came to be different?

More importantly, these are files that you would not normally ever edit directly---is your system working correctly?
 
Old 05-13-2012, 09:12 PM   #3
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
Indeed
Check which users are missing in the shadow file and try to discover why.
Maybe someone tried to disable accts manually instead of using the correct tools.

You may want to use this tool http://linux.die.net/man/8/pwck to sync the 2 files properly.
DEFINITELY take backups of both files before doing so, and ideally take the system into single user mode first.
 
  


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
Adding entries directly in /etc/passwd,/etc/shadow file shree24985 Linux - Server 1 03-11-2011 08:22 AM
[SOLVED] Deleted root from passwd and shadow file adloaiz Linux - Newbie 1 10-07-2010 02:34 PM
What is the easiest way to replace a hash in a shadow file, not using passwd? abefroman Programming 3 08-05-2010 07:56 AM
samba syncing with /etc/passwd and /etc/shadow iceman47 Linux - Software 7 01-23-2008 09:31 AM


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