Ubuntu Linux Add a User To Group www-data ( Apache Group )

To add a user to the www-data group (Apache group) in Ubuntu, you can use the following steps:

  1. Open a terminal window.
  2. Use the adduser command to add the user to the www-data group:
sudo adduser [username] www-data

Replace [username] with the actual username of the user you want to add to the group.

  1. Log out and log back in for the changes to take effect.
  2. Verify that the user has been added to the www-data group by using the id command:
id [username]

This will display information about the user, including the groups they belong to. The www-data group should be listed among the groups.

Leave a Comment