Re: Password Encryption Blues

From: phn@icke-reklam.ipsec.nu
Date: 05/22/02


From: phn@icke-reklam.ipsec.nu
Date: 22 May 2002 06:03:05 GMT

John <johnc@no1.com.au> wrote:
> HELP - I mean this sincerely.

> I have spent almost a week on and off trying to convert a plain text Unix
> password file (as you would use in Linux but an unshadowed version of it) to
> run under FreeBSD

> I understand the 3 extra fields required by FreeBSD and can convert
> accordingly.

> Would like to run a shell script to convert.

> If anybody could spare me some basic steps of what to do, would be much
> appreciated.
> Or I can send somebody the script we have developed thus far? which ever...I
> am now desperate, hence posting this message.

awk might be the easiest :
awk -F: '{print $1 ":"$2":"$3":"$4":0:0:0"$6":"$6}' < /etc/passwd > bsdpasswd.master

( the above contains probably some errors )

> Thanking you all in advance.

> John C

-- 
Peter Håkanson         
        IPSec  Sverige      ( At Gothenburg Riverside )
           Sorry about my e-mail address, but i'm trying to keep spam out,
	   remove "icke-reklam" if you feel for mailing me. Thanx.



Relevant Pages

  • Re: Password Encryption Blues
    ... > I have spent almost a week on and off trying to convert a plain text Unix ... > password file to ... > I understand the 3 extra fields required by FreeBSD and can convert ... > Would like to run a shell script to convert. ...
    (comp.security.unix)
  • Password Encryption Blues
    ... I have spent almost a week on and off trying to convert a plain text Unix ... password file to ... I understand the 3 extra fields required by FreeBSD and can convert ... Would like to run a shell script to convert. ...
    (comp.security.unix)
  • Password Encryption Blues
    ... I have spent almost a week on and off trying to convert a plain text Unix ... password file to ... I understand the 3 extra fields required by FreeBSD and can convert ... Would like to run a shell script to convert. ...
    (comp.security.unix)
  • Re: Newbie Experience
    ... I've only been around since FreeBSD 5.4 ... FreeBSD kernel too. ... always sunshine and linux is farts. ... in the hey day of AT&T Unix I'm ...
    (freebsd-questions)
  • Re: Naming confusion
    ... what I've seen all across the UNIX world. ... me to FreeBSD was that the Mac OS-X was based on FreeBSD. ... >will tend to have an adverse reaction to the hostname and IP number ... >flexible configuration-wise as a MacOS box is. ...
    (freebsd-questions)