Assign a default group to any files created in a directory on Linux

Some description

Source: https://linuxconfig.org/how-to-use-special-permissions-the-setuid-setgid-and-sticky-bits

setgid

chmod 2775 $DIR

OR

chmod g+s $DIR

Note with the 2775 permission, the 2 is the setgid bit and the 755 are regular permissions for user-rwx, group-rwx, all-rx

Copied!

Use your own input

If you have values you'd like to use instead of the provided variables, type or paste your data into the variable inputs below. If Javascript is enabled, your text will automatically be added to the command and you can click to copy.