I've recentely written a bash shell script with that is
supposed to backup my user's directories every night (using cron). The
job was submitted into the crontab from within an su(root) session.
I've set the permissions on the script to set user and group ID
on execution (s). The script is owned by root.root.
My problem: I want to output the filenames of the files that tar
directory. When I run the script from an interactive shell as root,
all works well. When it is run by cron, the file is created, but the
filenames go somewhere unknown.
I hope someone can help me with this one.