Ahimsa
12-20-2002, 07:55 PM
This is a description of what I am wanting to do: my query concerns (a) whether it is do-able and (b) how I might go about doing it if it is. In my own defence, I have searched high and low for answers from the docs and helpfiles, etc., but am still at a loss, so help is appreciated.
I am wanting to run a cron script that will get tripwire (and other scripts eventually) to run in the background on a single user system (RH8.0) and mail me relevant output. In itself, this is not problematic altho' I still have a lot to learn about cron. The crux of the difficulty is this: due to the nature of tripwire, I want it to run through my system recursively, which means that for it to scan certain directories/files it needs root permissions. I am wanting to get it to run as if it were root, in the background of my usual user account, so that I don't need to keep 'su'-ing each time I want to run the script, and have the output mailed to me as the user. Is there a way that I can do this?
It is entirely possible that I have all of this arse-backwards, so if anyone can help me sort out my thinking that in itself would be helpful :)
I am wanting to run a cron script that will get tripwire (and other scripts eventually) to run in the background on a single user system (RH8.0) and mail me relevant output. In itself, this is not problematic altho' I still have a lot to learn about cron. The crux of the difficulty is this: due to the nature of tripwire, I want it to run through my system recursively, which means that for it to scan certain directories/files it needs root permissions. I am wanting to get it to run as if it were root, in the background of my usual user account, so that I don't need to keep 'su'-ing each time I want to run the script, and have the output mailed to me as the user. Is there a way that I can do this?
It is entirely possible that I have all of this arse-backwards, so if anyone can help me sort out my thinking that in itself would be helpful :)