Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. root@bommel:~>htpasswd
  2. Usage:
  3. htpasswd [-cmdpsD] passwordfile username
  4. htpasswd -b[cmdpsD] passwordfile username password
  5.  
  6. htpasswd -n[mdps] username
  7. htpasswd -nb[mdps] username password
  8. -c Create a new file.
  9. -n Don't update file; display results on stdout.
  10. -m Force MD5 encryption of the password.
  11. -d Force CRYPT encryption of the password (default).
  12. -p Do not encrypt the password (plaintext).
  13. -s Force SHA encryption of the password.
  14. -b Use the password from the command line rather than prompting for it.
  15. -D Delete the specified user.
  16. On Windows, NetWare and TPF systems the '-m' flag is used by default.
  17. On all other systems, the '-p' flag will probably not work.
  18.  
  19.  
  20. root@bommel:~>htpasswd -s -n user
  21. New password:
  22. Re-type new password:
  23. user:{SHA}QL0AFWMIX8NRZTKeof9cXsvbvu8=
  24.  
  25. root@bommel:~>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement