Nov-03-2016, 11:08 AM
(Nov-03-2016, 10:02 AM)digitalquake Wrote: Thanks for the hints :)
I think the umask is there because this script write to an active folder shared over network and the scripts has to be run under root or an admin that can write folders with 777 permission in order to make them accessible to different users of the network.
It's not safe to set permissions to 777. Instead, create a group, assign the users to this group and set the owner of the file to be user:group and set the corresponding permissions.