QuestionQ23

VerifiedHTTP Services

A restricted area on an Apache HTTPD-hosted site requires users to authenticate against the file /srv/www/security/sitepasswd.

Which command changes the password for existing users without losing data when Basic authentication is used?

Explanation

Running htpasswd with an existing password-file path and username, without the -c flag, updates that user's password in the file. The -c flag would recreate and truncate an existing file, while -n outputs a password record rather than updating the file and -D deletes a user.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!