santoshkkhade
Flight Engineer
Flight Engineer
  • 251 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
  • 247 Views

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

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
Reply
Loading...
Join the discussion
You must log in to join this conversation.