Same thing, just omit the -c option. Apache documents on it here .
htpasswd /etc/apache2/.htpasswd newuser
In addition, htpasswd does not usually start as root. It usually belongs to either the web server or the file owner. If you use root to edit it instead of logging in as one of these users, this is acceptable (I suppose), but you'll want to be careful to make sure that you don't accidentally create the file as root (and therefore have your own root, and no one can edit it).
Corbin Jan 30 '13 at 2:03 2013-01-30 02:03
source share