user and groups permissions

Matthew Miller mattdm at fedoraproject.org
Tue Mar 25 14:13:42 UTC 2014


On Tue, Mar 25, 2014 at 02:35:57PM +0100, Rafnews wrote:
> i'm trying to figure out what is the best approach for files and
> folders permissions in case of a shared webserver.
> we are 2-3 developers and we have a server on which we installed
> Fedora 20 as web server for our development testing purpose.
> all websites should be stored in /var/www/html/ directory
> now let's say we are 2 devs called: "alain" and "francois" (those
> are our fedora user accounts.
> /var/www/html/ owner is root:root
> now what should we do to allow each dev to use FTP and
> created/delete/ modify files and folders to create website structure
> should we create a group like and add into it devs ?

That's a good idea, particularly at this scale. It's harder when you go up
to dozens of developers.

Change the directory to be owned and writable by the group, and use "chmod
g+s" to set the bit which will make all new files created inside that
directory also owned by that group.


-- 
Matthew Miller    --   Fedora Project    --    <mattdm at fedoraproject.org>


More information about the users mailing list