Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # -----------------------------------------------------------------------------------------
- # 1. Adds user to Apache User Group
- # 2. Assigns ownership of /var/www/ to the user www-data and group www-data
- # 3. Recursively making the /var/www/ directory read, write and execute permissions to
- # the owner(user www-data) and to $USER as being member of the www-data group.
- # ----------------------------------------------------------------------------------------
- sudo adduser $USER www-data
- sudo chown -R www-data:www-data /var/www/
- sudo chmod -R 775 /var/www/
Add Comment
Please, Sign In to add comment