Sound like you want the files generated by a cron to have group write perms. The way I do this is to write a wrapper script around the script/program I want to call in cron. e.g.: #!/usr/bin/bash #above: use bash on this script, in Unix cron will default to sh umask 02 #bits set here will not be set (i.e. mask) the permissions #in file creation (see chmod). #This only prevents "other" from having write access ...other settings in preparation for runing the script/program... script_or_program_here Put the wrapper script in cron and you are set. If you have several programs that need the same setup in cron make a script without calling the program. Perhaps call it bashCronSetup then put the following in cron for each script/cron you want call (if this works like Unix): /usr/bin/bash . /full_path_name/bashCronSetup;/full_path_name/script_or_program_here where full_path_name is replaced by the path to the respective scripts/program. Have fun. kurtRR On Sat, 06 Jan 2001, Tim Schall wrote:
I've got what is probablly a simple/dumb question. How do I (or is there a way?) to have new files in a directory granted group write privledges as soon as they are created?
I'm running Suse 6.4 and Samba on my file server and want to have a certain sub-directory (My MP3 storage) granted group write privledges as the CD-Ripper/MP3-Compressor creates the files. I want to do this so that files can have their ID3 tags updated by a Win98 box that logs in as a different user but a member of the same group.
I've tried having CRON run out periodically and update that directories permission settings but I think it would be smoother the other way.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq