santoshkkhade

Flight Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2020
04:13 PM
- 1,139 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.
1 Reply


Starfighter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2020
04:45 PM
- 1,135 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
Join the discussion
You must log in to join this conversation.