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

Some description



chmod 2775 $DIR


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


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.