LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 03-25-2006, 10:11 AM   #1
ericcarlson
Member
 
Registered: Jan 2002
Posts: 161

Rep: Reputation: 30
Permissions problem - setting up dirs for root + group access


I have a source tree owned by root (a website). I created a new group called deploy and added a user to it also called deploy. What I want is both the groups [root] and [deploy] to have write access to the full tree, i.e. from www downwards. This is so the deploy user can update the source via FTP when needed, but it still secure because its owned by root and "deploy" can only update this tree. How is this done please? Thanks...
 
Old 03-26-2006, 03:03 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
It's not so much the being owned by root that makes it secure, it's the lack of access by other users. So, if you trust the members of the deploy group you can make the source tree group owned by them with chgrp -R deploy /var/www You'll might need to set the gid bit so that files that get ftp'ed into the structure keep the correct group name with find /var/www -type d -exec chmod g+s {} \;

There may be a cleaner way to do that, but I'm about to go out so I can't go looking for it. Hope it helps anyway...
 
  


Reply


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
Setting User and Access Permissions crunchyuncle Linux - Newbie 7 03-18-2006 11:16 PM
Samba User / Group Access Permissions Different Between Linux and Win jeyroz Linux - Software 8 01-29-2006 11:26 AM
APACHE Problem 2 dirs, identical permissions and security contexts, one gives 403? tones Linux - Software 2 03-13-2005 08:45 AM
Permissions/group access when using Samba Nylix Mandriva 8 05-05-2004 03:39 PM
group permissions problem ForumKid Linux - General 5 12-02-2002 12:55 PM


All times are GMT -5. The time now is 10:09 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