Technically it depends on how you define file permissions. A files mode is one of the data points found in the stat structure. The mode lower 12 bits are the user, group, and other RWX permission triplets along with a setuid, setgid, and sticky bit. Mask away those lower bits and the value remaining is the file's type of which block, character, directory, FIFO, socket, symlink, and regular file are the only standard defined types. So the file's mode could be described as the Unix discretionary access control file permissions, the setguid and sticky bits, and the file type.
However file permissions have been extended since the original Unix file permissions to include ACL's, Extended Attribute file permissions, and mandatory access control schemes like SELinux and AppArmor.
mode
is the value that's stored, traditionally in thei-node
,permissions
are how thatmode
is interpreted to grant/deny access, so they represent two distinct aspects of the operation. – chexum Jun 19 '23 at 15:42