Without going into too much detail:
I have a daemon running as a root process.
It creates a file (e.g. foo) that serves as a signal to a bash script.
Once the bash script detects the presence of foo, it performs its actions and then is supposed to delete the foo file.
The bash script is started automatically when any non-root account is logged into. The problem occurs when the bash script tries to delete foo, I get a 'permission denied' message.
As I understand it, since the bash script is running as a process under a user acct, it does not have the permission to delete a file created by a root process.
I tried having the root process use chmod 777 foo, but this still did not allow the bash script to delete the foo.
What am I doing wrong? I am using RedHat Fedora 3
Any help is much appreciated