After the website of a client has been hacked, I found some files with the following permissions setWhat exactly S and T stands for?Also, which one is the command to set them with those permissions?Thanks in advance
File Permissions Sticky&User Execution
permissions;ls;chmod
There are many information sources about the topic, but reading here, on wikipedia and other similar questions asked on StackExchange like the following :https://askubuntu.com/questions/88391/whats-an-upper-t-at-the-end-of-unix-permissionshttps://superuser.com/questions/509114/what-does-directory-permission-s-mean-not-lower-case-but-in-upper-caseUppercase S in permissions of a folderwe can assume that:Sticky Bitis mainly used on folders in order to avoid deletion of a folder and  its content by other users though they having write permissions on the  folder contents. If Sticky bit is enabled on a folder, the folder  contents are deleted or moved by only owner who created them and the root user.But sure, it can be done also on singular files like in your case. How to set Sticky Bit# symbolic way :chmod +t /path/to/folder/or/file# Numerical way :chmod 1757 /path/to/folder/or/fileif you see T (uppercase) in the file permission area, that indicates the specific file or folder does not have executable permissions for all users permissions portion. Otherwise, if the sticky beat t is lowercase, it means the executable permission for all users is enabled.SetGID / SetUID (set-group-ID, set-user-ID) bitOn most systems, if a directory's set-group-ID bit is set, newly  created subfiles inherit the same group as the directory, and newly  created subdirectories inherit the set-group-ID bit of the parent  directory.Same logic for the SetUID bit.How to SetGID / SetUID# add the setuid bitchmod u+s /path/to/folder/or/file# remove the setuid bitchmod u-s /path/to/folder/or/file# add the setgid bitchmod g+s /path/to/folder/or/file# remove the setgid bitchmod g-s /path/to/folder/or/fileSimilar as described above, if you see S (uppercase) the directory's setgid bit is set, but the execute bit isn't set. is the s is lowercase the directory's setgid bit is set, and the execute bit is set.