LPI
202-400 · Question #15
202-400 Question #15: Real Exam Question with Answer & Explanation
The correct answer is B. htpasswd /srv/www/security/site-passwd user. See the full explanation below for the reasoning.
Question
There is a restricted area in an Apache site, which requires users to authenticate against the file /srv/www/security/site-passwd. Which command is used to CHANGE the password of existing users, without losing data, when Basic authentication is being used.
Options
- Ahtpasswd -c /srv/www/security/site passwd user
- Bhtpasswd /srv/www/security/site-passwd user
- Chtpasswd -n /srv/www/security/site-passwd user
- Dhtpasswd -D /srv/www/security/site-passwd user
- ENone of the above.
Community Discussion
No community discussion yet for this question.