[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting user passwords non-interactively



> i think chpasswd is what your looking for.
> chpasswd user:pass
>
> on woody atleast its included in the passwd package
>
> > im wondering if there is any non-interactive way to set a user's
> > password.......i need to do it through a script....please

Actually, I use Perl script with a shell system call to 'usermod' or
'useradd' with the '-p' option, however you have to remember to crypt the
password - crypt($passwd,$seed) - in the Perl script.


-- 
To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: