Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-04-2004, 05:26 AM   #1
LQ Newbie
Registered: Aug 2004
Location: Zambia
Distribution: Redhat 9
Posts: 2

Rep: Reputation: 0
Passwd and Shadow files synchronisation

Hi Everyone, newbies and Gurus,

I'm a newbie. I just installed Redhat 9 on an HP machine. I set up Squid, Samba and Sendmail. O'course with a lot of help from this site. Thanx.

However, I've encountered another hitch.

I copied the mailboxes, var/spool/mail/*, from the old linux machine to the new one using scp. I moved the home directories, /home/*; passwords /etc/passwd; shadow password file /etc/shadow; using scp to the respective directories on the new machine. I changed the permissions for the mailboxes to -rw-rw---- or 660.

The problem is when I open the Users and Groups under system settings it brings up the error "The user database cannot be read. The program will now exit". Then I got help that if there is a mismatch in the passwd and shadow files, then you'd have that problem. So I renamed the shadow file to shadow1 so that it could not be read and the Users and Groups opened. However, the root password was not being accepted for any connections. I tried to put back the shadow and root login was accepted but Users and Groups couldn't open. All this time the users could not access their mailboxes on port 110 because the passwords were being rejected

So, now I have removed the shadow file, set the root password and I can log in as root. And for each user whose password I set again they can login. Now my questions are:
1. Is there a way of synchronising the passwd and shadow files so that I could have no problem opening the Users and Groups Window?
2. How risky is it to run a mail server without the shadow file?

Please suggest what I should do.

Old 08-04-2004, 05:42 AM   #2
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,186

Rep: Reputation: 52
pwconv and pwunconv to convert between shadow, and regular passwords. maybe running them both will fix things.

have a look at this.
Old 08-04-2004, 09:00 AM   #3
LQ Newbie
Registered: Aug 2004
Location: Zambia
Distribution: Redhat 9
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks whansard. I ran both the commands and the shadow has been restored.
Old 08-04-2004, 10:09 AM   #4
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,571

Rep: Reputation: 180Reputation: 180
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.


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
passwd shadow problem rblampain Linux - Distributions 2 10-04-2005 12:00 AM
Moving /etc/passwd and /etc/shadow john8675309 Linux - Software 1 01-24-2005 08:44 PM
splitting up the passwd and shadow files Burgin Linux - General 1 07-26-2004 09:39 PM
mismatch with /etc/passwd and /etc/shadow AngryKeebler Linux - General 1 07-23-2004 03:42 PM
/etc/passwd or /etc/shadow? tiger7007 Linux - Security 2 03-21-2004 04:41 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration