Setgid executable files (UNIX)

Module: File Find

This check finds files that have been assigned the setgid attribute and are executable. Anyone running a setgid file is temporarily assigned the group ID of the file. While many system files depend on this attribute for proper operation, security problems can result if setgid is assigned to programs that allow reading and writing of files or escapes to shell. The executable status of files is determined using the UNIX file command. Enter full path names and wildcard characters in the file list to specify files and directories to be excluded from the check. For example, you would enter /etc/* to exclude all files in the /etc directory. ESM recognizes two types of executable files: binaries and scripts. To exclude one or the other, add BINARY or SCRIPT to the exclude name list. Files excluded by executable type will be reported by the Setgid Files check, if it is enabled.

The following table lists the error message for the check.

Table: Error message for Setgid executable files

Message String ID and Category

Platform and Message Numeric ID

Message Title and Description

Additional Information

String ID: STKU_SETGID_EXEC

Category: System Information

UNIX (5654)

Title: File is setgid and executable

Description:The listed files have been assigned the setgid attribute and are executable. Setgid means that anyone running these files is temporarily assigned the group ID of the file. While many system files depend on this attribute for proper operation, security problems can result if setgid is assigned to programs that allow reading and writing of files or escapes to shell. You should examine the listed files for such attributes and use the chmod command to change the file setgid properties where appropriate. The executable status of these files was determined using the UNIX file command. The output of this command is shown in the information field.

Severity: red-4

Correctable: false

Snapshot Updatable: false

Template Updatable: false

Information Field Format: [%s]