Mondoo Docs

Access permissions for a given file

file.permissions MQL resource for querying Operating System infrastructure with cnquery and cnspec.

Operating SystemPrivate Resource

Access permissions for a given file

Min version: 5.15.0Defaults: string

Relationships

Mini Map
Operating System
3 resources · 2 relationshipsClick to select, expand fields to see properties.

Fields (17)

FieldTypeDescription
group_executablerequired
intWhether the file is executable by members of the group
group_readablerequired
intWhether the file is readable by members of the group
group_writeablerequired
intWhether the file is writeable by members of the group
isDirectoryrequired
intWhether the file describes a directory
isFilerequired
intWhether the file describes a regular file
isSymlinkrequired
intWhether the file is a symlink
moderequired
intRaw POSIX mode for the permissions
other_executablerequired
intWhether the file is executable by others
other_readablerequired
intWhether the file is readable by others
other_writeablerequired
intWhether the file is writeable by others
sgidrequired
intSGID bit indicator
stickyrequired
intSticky bit indicator
string
stringA simple printed string version of the permissions
suidrequired
intSUID bit indicator
user_executablerequired
intWhether the file is executable by its owner
user_readablerequired
intWhether the file is readable by its owner
user_writeablerequired
intWhether the file is writeable by its owner