cancel
Showing results for 
Search instead for 
Did you mean: 
santoshkkhade
Flight Engineer
Flight Engineer
  • 764 Views

htpasswd unable to add entry for both the accounts in file.

htpasswd -c -B -b ~/DO280/labs/auth-provider/htpasswd admin redhat

htpasswd -c -B -b ~/DO280/labs/auth-provider/htpasswd developer developer

i could see entry for only developer user in ~/DO280/labs/auth-provider/htpasswd developer. If i use the command for admin user again it's adding admin user and removing developer user.  

Labels (1)
0 Kudos
1 Reply
Alexandre
Starfighter Starfighter
Starfighter
  • 760 Views

Hello

Option -c require to create the passwdfile. If passwdfile already exists, it is
rewritten and truncated. So no sense to use this option for second command:

htpasswd -c -B -b ~/DO280/labs/auth-provider/htpasswd admin redhat

htpasswd  -B -b ~/DO280/labs/auth-provider/htpasswd developer developer

0 Kudos
Join the discussion
You must log in to join this conversation.