LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-04-2004, 05:26 AM   #1
sandras
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.

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

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

have a look at this.
http://www.tldp.org/LDP/lame/LAME/li...e-formats.html
 
Old 08-04-2004, 09:00 AM   #3
sandras
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
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

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


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:04 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
Open Source Consulting | Domain Registration