Correct me if I am wrong. You have different users running your application but they all write to the same log file. Can you make each user log to their own file (i.e. in their home directory)? If not you could make a batch file to run the program which changes the log file permissions when the program is done.
On 9/13/06, JamesAi <[EMAIL PROTECTED]> wrote:
Yes, you are right. But users don't allow me to modify their umask. Is there any other solution? James Stauffer wrote: > > What kind of application is it? You probably just need to change the > umask. > > On 9/12/06, JamesAi <[EMAIL PROTECTED]> wrote: >> >> When I use log4j in Linux, I found it has a permission problem. >> When log4j initialization, it create log files using system defalut >> permission, such as "-rw-r--r--". But if other user uses the application, >> he >> can't write anything into log file. >> So how to set permission of log files in log4j configuration file. Thank >> you >> very much! >> -- >> View this message in context: >> http://www.nabble.com/How-to-set-permission-of-log-files-tf2257014.html#a6260506 >> Sent from the Log4j - Users forum at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > James Stauffer http://www.geocities.com/stauffer_james/ > Are you good? Take the test at http://www.livingwaters.com/good/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-set-permission-of-log-files-tf2257014.html#a6279447 Sent from the Log4j - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- James Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
