From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Adam T. Bowen" Subject: Re: Creating password for command on the fly Date: Fri, 16 May 2008 10:12:02 +0100 Message-ID: <482D4FE2.3060507@agitate.org.uk> References: <91df29a20805160135l2d811216rcecf9aa1ad8eee4e@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1AEF51B0EAC3672CBA8A0E0C" Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:sender; bh=VQONgXD1Sz15aEltYE4Oc33Yg+XoAwWlAu3C5l+xRMU=; b=thTpM44BvjGtSHmUhtxeFganELpFG5pJORsYW8hKtuZNORU8DOdYMiGQpKqXZmS6whAG7ijJ5TTVBHsisVjYJzTXyBDeciRq47wqqDrgqnZfj9rap3r0JctV+JsiMxv9Hum0ZZAqAYk+Z+kx/WIBcy2pdke7gbVqasUzZtY97es= In-Reply-To: <91df29a20805160135l2d811216rcecf9aa1ad8eee4e@mail.gmail.com> Sender: linux-admin-owner@vger.kernel.org List-ID: To: linux-admin@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1AEF51B0EAC3672CBA8A0E0C Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Hi, M=E1rio Gamito wrote: > I have this command to create an FTP account: >=20 > # pure-pw useradd mario -u 502 -g 502 -n 1000 -N 200 -d /home/pages/gam= ito >=20 > This command asks for the password twice. It's a shame it doesn't allow you to pass in a password on the command=20 line, like the UNIX useradd command, but hey ho. I wouldn't bother using the pure-pw command, and would modify the=20 /etc/pureftpd.passwd file manually. I had a quick look at the=20 documentation and it seems you have to make sure you rebuild the passwd=20 database to commit any changes with: pure-pw mkdb if you manually edit it. There is a description of the passwd file=20 format in the documentation. Here is an extract: --------------------------------------------------------- You can also edit the files by hand if you want. Files storing virtual users have one line per user. These lines have the following syntax: :::::::::::::::::