in Web & Tech

Document Root für alle Benutzer einer Gruppe verfügbar machen

To best share with multiple users who should be able to write in /var/www, it should be assigned a common group. For example the default group for web content on Ubuntu and Debian is www-data. Make sure all the users who need write access to /var/www are in this group.

sudo usermod -a -G www-data <some_user>
Then set the correct permissions on /var/www.

sudo chgrp -R www-data /var/www
sudo chmod -R g+w /var/www
Additionally, you should make the directory and all directories below it “set GID”, so that all new files and directories created under /var/www are owned by the www-data group.

sudo find /var/www -type d -exec chmod 2775 {} \;
Find all files in /var/www and add read and write permission for owner and group:

sudo find /var/www -type f -exec chmod ug+rw {} \;
You might have to log out and log back in to be able to make changes if you’re editing permission for your own account.

Quelle: permissions – How can I give write-access of a folder to all users in linux? – Super User

Und weil ich demnächst doch nicht um ACL herumkomme das gleich hinterher:

  • http://brunogirin.blogspot.de/2010/03/shared-folders-in-ubuntu-with-setgid.html
  • http://tlug.dnho.net/node/171

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Learn More)

  • Related Content by Tag