LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 10-03-2005, 12:29 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Rep: Reputation: 52
passwd shadow problem


I had to reinstall FC2 after trying unsuccessfully to install Debian. After FC2 was installed the first time I had to add some 20 users, I did this by hand through the GUI, then I saved a copy of the file to avoid having to retype it all if another install was necessary.
After this last install, I copied the backup file to /etc/passwd and ran "pwck", "grpck" and "pwconv" thinking everything should now be OK but I can't log in as any user at all, only as root.

Could someone point me to the correct procedure in such a situation and how to solve my problem now?

Thank you for your help.
 
Old 10-03-2005, 01:11 AM   #2
free_ouyo
Member
 
Registered: Mar 2004
Location: Belgium
Distribution: Ubuntu
Posts: 133

Rep: Reputation: 15
passwd shadow problem

Hello,

I think you needed 2 files to be copied /etc/passwd and /etc/shadow
You need both to work correctly.
Root passwd is working because you created a new root account on the system.
--
free_ouyo
 
Old 10-04-2005, 12:00 AM   #3
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
Hello from a Belgian in Australia.
I can't figure out what's going on, even a fresh install doesn't allow me to boot as a user immediately after the install. I tried to add new users and log in as this new user but I invariably get "Authentication failed"

I had one CD of my original FC2 CDs set explode inside the drive some weeks ago and I have lately used a spare set of FC2 CDs that came in a book I bought a couple of years ago but had never been used, maybe there is something wrong with these.

An oddity I should perhaps mention, with my original FC2 CD set (4 CDs) I spent some considerable time trying to have the screen turn off after a period of inactivity and never succeeded, with the second set of FC2 (also 4 CDs), it works "out of the box". These 2 sets were created about the same time.

"/etc/passwd" and "/etc/shadow" are OK

I don't think it's worth spending more time on this problem because I'm going to install Debian in a few days. I still have RH9 and will use that or run as root for a few days.

Thank you for your assistance.
 
  


Reply



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
Moving /etc/passwd and /etc/shadow john8675309 Linux - Software 1 01-24-2005 08:44 PM
It is ok if i unshadow the /etc/passwd and /etc/shadow Paxmaster Linux - Software 1 01-12-2005 10:07 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 - Distributions

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