Previous Topic: Is_SGID - Check the File for the 'Set Group ID' AttributeNext Topic: Is_System - Check the File for the 'Is System' Attribute


Is_SUID - Check the File for the 'SET USER ID' Attribute

Valid on UNIX only

The Is_SUID function checks the file for the specified attribute SET USER ID.

Function format:

Is_SUID(filename as String) as Boolean
filename

Identifies a file path.

This function returns TRUE if the attribute is set; otherwise, returns FALSE.

Example:

If Is_SUID(Argv(1)) Then
	print(Argv(1) + " indicates 'SUID'.")
Else
	print(Argv(1) + " does not indicate 'SUID'.")
End If