SGID bit for course backup files

SGID bit for course backup files

by Ivan Belotelov -
Number of replies: 2
Dear moodlers,
zip files  in  course backup  directory  created  with set-group-id  bit set  and  site admins  complains  about it. Is it nesessary to keep such permissions,  and if not - how I  can change it for newly created files?
Thanks a lot.
Average of ratings: -
In reply to Ivan Belotelov

Re: SGID bit for course backup files

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Have a look at your config.php file. There you should see something similar to this:

   $CFG->directorypermissions = 02777

Specially important is the '2'. If you have it there, Moodle will create directories with the set-group-id set. Change it to 00777 and new directories will have the set-group-id unset.

Saludos. Iñaki.
In reply to Iñaki Arenaza

Re: SGID bit for course backup files

by Ivan Belotelov -
Thanks Iñaki, now it works properly, hosting admins gonna be happy smile