1748180 Members
4203 Online
108759 Solutions
New Discussion

Re: error_in script

 
SOLVED
Go to solution
James R. Ferguson
Acclaimed Contributor

Re: error_in script

Hi:

> But when my application executes command as bin.

Do you mean that you want files created by your application to be owned by 'bin'?

If so, you can have the _group_ ownership set to 'bin' simply by setting the 'setgid' bit on the parent directory:

# chgrp bin /tmp/ActionNNM
# chmod g+s /tmp/ActionNNM

Now files createed in the directory will automatically have a group ownership of 'bin'. The file's owner will remain that of the effective uid of the process creating them, but this is a way to grant group visability.

Regards!

...JRF...