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.