Bug#448754: /usr/bin/htpasswd: please give batchable option
On Wed, Oct 31, 2007 at 05:13:00PM +0100, Stefan Fritsch wrote:
> htpasswd is missing a feature there to get the password from a file
> descriptor.
Or from a pipe. This is an upstream issue, can you pass it onwards?
> What the manpage means is probably that one should use -b only when
> necessary. From a shell script the use of -b might be acceptable
> because the password will not be put into .bash_history and htpasswd
> runs only for a very short time (so it's difficult to get the
> password with ps).
It is still ugly.
> A real workaround would be to feed the password to htpasswd with socat
> (search for ssh in the socat man page for an example), but this is
> IMHO not suitable for a postinst because of the added dependency.
And it is even more ugly.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
Reply to: