srini carry wrote:if admin gives me read permissions and suppose my app was deleted from weblogic so this file is also got deleted and next time my app starts it creates a new file, in this case will my read permission still work? , my admin says it will not
Your admin is almost certainly correct.
You probably want to tell your admin that according to your current configuration your log file gets replaced on a regular basis, and only one backup is kept. Given this, there is little the admin can do to the log file itself that will be of any good to you - whatever they do will be done to a logfile that will be rotated out in short order.
Normally I would do exactly what Peter is suggesting: give your admin your requirements and let them come up with a solution that meets their needs in having a secure, reliable environment. That is what admins are good at.
If I were in the position of the admin, I would be considering whether you could be added to the same group as the (pseudo) user that start WebLogic. That might fix the problem in the easiest manner with little difficulties. However there may be security issues related to that which might prevent that.
Have you told your admin that you have the ability to configure the location of the logfile? And perhaps equally importantly, that you can create more than one log file simultaneously in different locations?
Given that, I would consider having your application create an
additional log file in a fixed directory that is separate from the WebLogic directory structure. As Peter mentions this should be on the same system as your Web Logic server. I would then set the
group ID bit on this additional directory so that
your applications log files are automatically owned by the group you belong to. Since this permission is being set on the directory, and the directory is external to WebLogic, it does not matter whether your application is deleted from the WLS container - it is the directory itself that matters.