Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-13-2010, 12:03 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
Question Fixing permissions for lamp on Ubuntu server

I've set up an Ubuntu Server that myself and two other friends are going to try and do some web development on. I've installed Lamp and such. Each of us have our own accounts, and I've put each of us in a group called devteam. I have also created a folder in the /var/www called development(/var/www/development). I want to create a symbolic link from that location to each of our home directories. Is that possible?
The main problem is that when one of us creates a file in the development directory, the group does not have write privileges. How can you make it where any new file within this directory automatically gives the group full access to the file or folders within the development directory?

Thanks for any help.
Old 12-13-2010, 05:43 PM   #2
Registered: Oct 2006
Location: Seattle, Washington
Distribution: Gentoo, LinuxMint, Arch Linux
Posts: 99

Rep: Reputation: 18
First you need to make sure /var/www/development is assigned the devteam group and permissions are correct (rwx probably). Then use setgid on the directory. "Setting the setgid permission on a directory (chmod g+s) causes new files and subdirectories created within it to inherit its groupID, rather than the primary groupID of the user who created the file." (From this wiki article):


lamp, permissions

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I edit files remotely from LAMP Ubuntu Server with Ubuntu Desktop? pyrospade Linux - Server 4 11-27-2010 04:07 AM
installation of lamp server in ubuntu 9.10 yasokrish Linux - Software 1 04-15-2010 08:49 AM
LXer: LAMP Server with Ubuntu 9.10 LXer Syndicated Linux News 0 11-13-2009 03:40 PM
UBUNTU 6.10 LAMP Server with KDE ? JohnnyUtah Ubuntu 2 02-15-2007 01:04 AM
Setting up Ubuntu LAMP Server for local web server sewmyheadon Linux - Newbie 5 02-11-2007 03:06 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration