nerdexam
LPI

202-400 · Question #15

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…

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.

How the community answered

(40 responses)
  • A
    5% (2)
  • B
    83% (33)
  • D
    10% (4)
  • E
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 202-400 Practice