LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-07-2010, 12:06 PM   #16
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38

Could you setup the multi user area as a subversion repo and do a post commit hook to check out a copy to an area that is only accessed and owned by the application?

This is assuming that I understand the problem correctly: The application must _own_ the files

perhaps I am skinning a yak at this point.

Last edited by frndrfoe; 09-07-2010 at 12:07 PM.
 
Old 09-07-2010, 12:39 PM   #17
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by epoh View Post
No, you've got it. What you've put is what I am currently doing. I've got a cronjob that runs every 30 seconds that chowns everything. The issue is that periodically they will get errors because their app will try to read the directory before the chown script has run. I was trying to see if there was a better way to handle it, but it doesn't look like it. (Except maybe getting SAP to let me look at the code of the app they are running!)
So long as the application owner ID (e.g. sapadmin) and all your individual users (e.g. bob, sue, tiny, bertha) are members of the group that you put sgid on the directory and you also have read, write & execute bits set for group on the directory there should be no reason the application can't read the files created by the individual users. Remember that users can be members of multiple groups so you don't have to add the app owner to the users group and don't have to add the users to the app owner's group. Ordinarily the file would get that default group from the user but the sgid overrides it to use the group that currently is group for the directory.

Last edited by MensaWater; 09-07-2010 at 12:42 PM.
 
Old 09-07-2010, 12:59 PM   #18
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
MensaWater is correct,
I was just thinking "in a strange circumstance" similar to sendmail wanting it's certificate's key to be owned by sendmail and not readable by anyone else (which isn't strange).

You may also have problems if you do not change the user's umask because I think it will default to 022.
 
  


Reply



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
suid/setuid kill question bt101 Linux - General 1 01-15-2010 09:57 PM
A question about setuid trist007 Linux - Newbie 2 12-14-2008 02:23 PM
A question about setuid trist007 Linux - Newbie 1 12-14-2008 01:48 PM
A question about setuid trist007 Linux - Newbie 1 12-14-2008 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration