DCache gPlazma: htpasswd management

From Public PIC Wiki
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'.