[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting Default Group Permissions In Folders

In <[🔎] 4edb5eb80910071547sace8ddfx137a975ea9805c1e@mail.gmail.com>, Austin Brkich 
>I have created a new group called www-user, this group is suppose to
>allow multiple users to read/write/execute files/folders in /var/www.

The first step is to make sure files get owned by the right group:
find /var/www -type d -exec chmod g+s {} +
find /var/www -exec chgrp www-user {} +

I fear there may not be a way to guarantee the g+w bit on new files using 
standard UNIX permissions and I do not use ACLs myself.
Boyd Stephen Smith Jr.                   ,= ,-_-. =.
bss@iguanasuicide.net                   ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy         `-'(. .)`-'
http://iguanasuicide.net/                    \_/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply to: