Hello all,
I have a script that runs on both the test and production box. The script is owned by a user (abcd for example) with permission set to 700. When this script is run as a root, the log file generated has owner and group as abcdowner and abcdgroup respectively.
Now, when I run the same script in production box as a root(with same script permission 700), I get the logfile with owner as a root and system as a group.
I need to have the ownership of the logfile exactly as the way it comes out in test box for my production box.
Here is my question? what is making the test box to produce the logfile with the mentioned owners whereas it is different for the production box.
Pls..do not say to change the ownership of the logfile from the script in the production box to make it like the test box because that will be the work around not a permanent solution.
thanks