DCache gPlazma: htpasswd management

From Public PIC Wiki
Revision as of 09:08, 5 October 2017 by Mcaubet (talk | contribs) (→‎How to generate a new password in htpasswd)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to generate a new password in htpasswd

  • Log in a door and execute the following command:
[root@door01 ~]# htpasswd -n -m <user>
New password: 
Re-type new password:
<user>:$apr1$Knkg1eYq$WKIQSP0p0m2XKhAasbIRD1
where MD5 encryption must be used (option -m) and option -n just forces to show the output on stdout.
  • Copy the output to the htpasswd file locate in /etc/dcache/htpasswd. This file is managed in puppet'.