Opps, sorry: hit the wrong button in reply.

----- Forwarded message from Matt Hope <[EMAIL PROTECTED]> -----

Subject: Re: [SLUG] /etc/new-passwd creation
From: Matt Hope <[EMAIL PROTECTED]>
To: Stuart Guthrie <[EMAIL PROTECTED]>
Date: Wed, 31 Oct 2001 00:35:37 +1100

On Tue, 30 Oct 2001, Stuart Guthrie <[EMAIL PROTECTED]> wrote...

: Checked man and google. Is there an obvious way to create a new passwd 
: file (/etc/new-passwd) and add users/passwds to it instead of to 
: /etc/passwd?
: I'm trying to implement a seperate passwd file to the normal passwd for 
: my proftp. The command in proftp AuthUserFile is easy, setting up the 
: new -passwd file is not obvious.

the password file is just a standard format

sample:
root:x:0:0:root:/root:/usr/bin/zsh

user:crypted-password:uid:gid:gecos:home:shell

for proftpd, you need all of these except gecos, and possibly shell.

It'd be easy to write a perl script which will do this, using crypt() for
the password. Otherwise, apache includes a program called "htpasswd" which
will create password files as user:cryptedpassword which you could hand
edit. 

dopey

----- End forwarded message -----

PGP signature

Reply via email to