My script that i have works just how I want it to, with one exception. I would like to be able to automatically set the unix group permissions to the directory and files that I create in my perl script.
Is this possible, or do i just have to resort to
chgrp <group> <directory>
after running my script?
You can use Perl’s
chownfunction as such:You may need privileges to do this however, as stated in the docs.
http://perldoc.perl.org/functions/chown.html