LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 12-12-2010, 11:03 PM   #1
jagrave
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, 04:43 PM   #2
jasohl
Member
 
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):
http://en.wikipedia.org/wiki/Setgid#...on_directories
 
  


Reply

Tags
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 03:07 AM
installation of lamp server in ubuntu 9.10 yasokrish Linux - Software 1 04-15-2010 07:49 AM
LXer: LAMP Server with Ubuntu 9.10 LXer Syndicated Linux News 0 11-13-2009 02:40 PM
UBUNTU 6.10 LAMP Server with KDE ? JohnnyUtah Ubuntu 2 02-15-2007 12:04 AM
Setting up Ubuntu LAMP Server for local web server sewmyheadon Linux - Newbie 5 02-11-2007 02:06 PM


All times are GMT -5. The time now is 09:48 PM.

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