Linux - How to create htpasswd file, Below are the commands used to create htpasswd file

How to create htpasswd file

htpasswd command will create an encrypted password file in the specified file and adding additional user will add the the users to same file
 # htpasswd -c .htpasswd tomy

   Adding password for tomy
   New password:
   Re-type new password:
The passwords added to the .htpasswd file are shown in their encrypted form, the password file can be of any name as you wish.

 # htpasswd .htpasswd james

   Adding user james
   New password:
   Re-type new password:

 # htpasswd .htpasswd roger
   
   Adding user roger
   New password:
   Re-type new password:

 # htpasswd .htpasswd guru

   Adding user guru
   New password:
   Re-type new password:

 # cat .htpasswd
  
   tomy:A3rudss458796
   james:sdfdsf867.852
   roger:KJHGdfj6df.TU
   guru:Rtdfmkmd.ksdHY

The topic on Linux - How to create htpasswd file is posted by - Guru

Hope you have enjoyed, Linux - How to create htpasswd fileThanks for your time

Tech Bluff