The .htgroup file necessary to create a group called students with users student1, student2, and student3 is shown below. The group name is followed by a colon, and the user names are separated by spaces.


students: student1 student2 student3

That's all there is to it. Now the group name students is defined for use in the access instruction in the .htaccess file. Note that each of the users in the group must be in the .htpasswd file as well.