Simple shared folder for web development using Ubuntu
The goal is to create a folder where multiple developers can ssh to a server and create and edit files belonging to a developer group.
pre-requisites
sudo apt-get install acl
vi /etc/fstab
UUID=XXXX / ext4 defaults,acl 0 2
sudo mount -o remount /
let's get started
groupadd developers
usermod -a -G developers john
mkdir teamfolder
chown www-data.developers teamfolder
chmod 0775 teamfolder
chmod g+s teamfolder
sudo setfacl -d -m u::rwx,g::rwx,o::rx teamfolder
and you're done!
pre-requisites
sudo apt-get install acl
vi /etc/fstab
UUID=XXXX / ext4 defaults,acl 0 2
sudo mount -o remount /
let's get started
groupadd developers
usermod -a -G developers john
mkdir teamfolder
chown www-data.developers teamfolder
chmod 0775 teamfolder
chmod g+s teamfolder
sudo setfacl -d -m u::rwx,g::rwx,o::rx teamfolder
and you're done!
drwxrwsr-x+ 2 hbalagtas webadmin 4096 2011-09-18 16:28 test2/-rw-rw-r-- 1 hbalagtas webadmin 0 2011-09-18 16:28 test.php
Comments
Post a Comment