Re: Possible to force ALL files created in a specific directory to include g+w ?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Re: Possible to force ALL files created in a specific directory to include g+w ?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Possible to force ALL files created in a specific directory to include g+w ?  
Jeremiah DeWitt Weiner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:47 PM

noone <noone@noone.org> wrote:
quote:
> ... because the log files are owned by john and not joe, and the > group-ownership is read-only, the application won't start. The log files > are actually created by Apache Log4J.
quote:
> So question is, is there a way to force files that are ___created__ in a > specific directory to have g+w ??
In general, no, but one thing you can do is ensure that the files are created first and given group-write permission before you start up the app that uses them. Then - assuming your app does not do stuff like remove and recreate its log files - you'll be OK. Any log-rotation program will have to take this into account, of course. Using sudo to run the app as a single standard user isn't bad either, although in my experience, you'll never get everybody to remember this all the time, and some idiot will start the app as root, and then the next guy who tries to start it correctly will wonder why stuff doesn't work, etc. JDW




[ Post a follow-up to this message ]



    Re: Possible to force ALL files created in a specific directory to include g+w ?  
Jeremiah DeWitt Weiner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:56 PM

noone <noone@noone.org> wrote:
quote:
> ... because the log files are owned by john and not joe, and the > group-ownership is read-only, the application won't start. The log files > are actually created by Apache Log4J.
quote:
> So question is, is there a way to force files that are ___created__ in a > specific directory to have g+w ??
In general, no, but one thing you can do is ensure that the files are created first and given group-write permission before you start up the app that uses them. Then - assuming your app does not do stuff like remove and recreate its log files - you'll be OK. Any log-rotation program will have to take this into account, of course. Using sudo to run the app as a single standard user isn't bad either, although in my experience, you'll never get everybody to remember this all the time, and some idiot will start the app as root, and then the next guy who tries to start it correctly will wonder why stuff doesn't work, etc. JDW




[ Post a follow-up to this message ]



    Re: Possible to force ALL files created in a specific directory to include g+w ?  
Jeremiah DeWitt Weiner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10:11 PM

noone <noone@noone.org> wrote:
quote:
> ... because the log files are owned by john and not joe, and the > group-ownership is read-only, the application won't start. The log files > are actually created by Apache Log4J.
quote:
> So question is, is there a way to force files that are ___created__ in a > specific directory to have g+w ??
In general, no, but one thing you can do is ensure that the files are created first and given group-write permission before you start up the app that uses them. Then - assuming your app does not do stuff like remove and recreate its log files - you'll be OK. Any log-rotation program will have to take this into account, of course. Using sudo to run the app as a single standard user isn't bad either, although in my experience, you'll never get everybody to remember this all the time, and some idiot will start the app as root, and then the next guy who tries to start it correctly will wonder why stuff doesn't work, etc. JDW




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:22 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register