LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-27-2009, 04:00 PM   #1
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Rep: Reputation: 31
Converting from FreeBSD to Debian passwd files


So I'm migrating from FreeBSD 5.2.1 to Debian (Lenny). I think I can handle the conversion of the data itself with a simple script by replacing everything after the password hash with :13872:0:99999:7:::

However, I'm unsure of how Debian uses its files. It has:

passwd
passwd-
shadow
shadow-
group
group-
gshadow
gshadow-

What are those files with the - at the end for? What's the best/proper way to manually edit these files and lock the changes in (if any such step is needed)?

I'd already manually edited the passwd file while installing sendmail and the system seems to be using that file (while the passwd- file has an extra entry in it that I had deleted). Apparently that was a mistake as the two files mismatch now (though it hasn't caused any obvious problems yet).
 
Old 10-27-2009, 04:19 PM   #2
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
Ok, I think I figured it out myself. That's what I got for going to the forum before fiddling around. Confirmation is still good though. Maybe someone else can benefit in the future. It looks like the "dash" files are created by the vipw editor by moving the old passwd file into passwd- before writing any changes (etc.)

To finish moving the accounts, I will need to do what I said to master.passwd above to convert it to a shadow file, but I'll also need to replace the * with x in the passwd file (where the password hash goes if a shadow file isn't used) and change all of the shell scripts which are in a different location on the BSD machine. I tested this with one account where I know the password and it works fine once I replaced * with x.

Thanks for being sounding board LQ. Makes me feel more confident to figure things out myself
 
  


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
Converting qmail from /etc/passwd to LDAP k41184 Linux - Security 1 11-12-2005 03:57 AM
What is the encryption used for /etc/passwd FreeBSD 4.9 wayloud *BSD 1 09-05-2004 01:59 AM
Converting a string from /etc/passwd liguorir Linux - Software 3 04-13-2004 02:32 PM
Converting From FreeBSD measl Linux - Distributions 1 09-26-2003 11:51 PM
freebsd 4.5 no root passwd ? Ratclaws *BSD 3 07-22-2002 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:22 AM.

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