Re: Password Encryption Blues
From: John (johnc_without_spam_thankyou@no1.com.au)Date: 05/22/02
- Next message: Casper H.S. ***: "Re: jizzy.c -- sendmail remote exploit (POSSIBLE TROJAN)"
- Previous message: Dinesh.Chetty@eskom.co.za: "Help with login id"
- In reply to: phn@icke-reklam.ipsec.nu: "Re: Password Encryption Blues"
- Next in thread: phn@icke-reklam.ipsec.nu: "Re: Password Encryption Blues"
- Reply: phn@icke-reklam.ipsec.nu: "Re: Password Encryption Blues"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "John" <johnc_without_spam_thankyou@no1.com.au> Date: Wed, 22 May 2002 17:51:56 +1000
Peter, firstly THANK YOU. I really can;t thank you enough...been banging my
head against a wall.
I have that working. I can produce the clear text file but I have had no
luck encrypting it.
Have been trying both PW and PASSWORD in our script but both are wanting
input through command line interface. Although just been reading that the PW
command can be used in a script using a "FILE DESCRIPTOR"
MAN PW
<snip>
Because the command line and environment are fundamentally insecure
mechanisms by which programs can accept information, pw
will only allow setting of account and group passwords via
a file descriptor (usually a pipe between an interactive
script and the program). sh, bash, ksh and perl all pos
sess mechanisms by which this can be done. Alternatively,
pw will prompt for the user's password if -h 0 is given,
nominating stdin as the file descriptor on which to read
the password. Note that this password will be read only
once and is intended for use by a script rather than for
interactive use.
</snip>
I can loop etc within my script for each entry and execute the PW command
but how to use the PW command has got us stumped......
Any additional suggestions or help you could offer? Really do appreciate
your time!
JohnC
<phn@icke-reklam.ipsec.nu> wrote in message
news:acfcap$s2a$2@nyheter.crt.se...
> 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.
- Next message: Casper H.S. ***: "Re: jizzy.c -- sendmail remote exploit (POSSIBLE TROJAN)"
- Previous message: Dinesh.Chetty@eskom.co.za: "Help with login id"
- In reply to: phn@icke-reklam.ipsec.nu: "Re: Password Encryption Blues"
- Next in thread: phn@icke-reklam.ipsec.nu: "Re: Password Encryption Blues"
- Reply: phn@icke-reklam.ipsec.nu: "Re: Password Encryption Blues"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]