How can I give write-access of a folder to all users in linux?
Problem
I installed apache2 on Ubuntu just now, and noticed that the /var/www folder is protected. I can just everything but I would rather just give it write access. How can I do this? I tried but it didn't work.
Error Output
sudo
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: How can I give write-access of a folder to all users in linux?
To best share with multiple users who should be able to write in , it should be assigned a common group. For example the default group for web content on Ubuntu and Debian is . Make sure all the users who need write access to are in this group. Then set the correct permissions on /var/www. Additionally, you should make the directory and all directories below it "set GID", so that all new files and directories created under are owned by the group. Find all files in and add read and write permiss…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix