Special Access control permissions in linux: sticky bit, setuid, setgid 1. sticky bit, also known as stricted deletion bit, is set on the directory to control the permission to delete and rename files in the directory. If a directory has sticky bit, only the following three types of users have the permission to delete files in the directory. 1) root users (not necessarily root users). 2) owner of the directory or owner3 of the files in the directory) A user with write permission on the file directory represents the permission of sticky bit. The value is 1.
2. setuid and setgid www.2cto.com are mainly used to set the setuid for executable files. When a file is executed, the setgid file has the permission of the file owner. When the file is executed, the setgid file has the permission of the file group to represent the setuid permission. 2 indicates the setgid permission number. 4. Do not set setuid and setguid on the script file, it is said that hackers have many ways to use these two permission bits on the script to set these three permission bits by adding one before the original three permission bits, such as chmod 2755 file, to set the file setuid permission directly add chmod u + s file to add setuid permission to the file, chmod g + s file adds the setguid permission to the file. chmod o + s file adds the sticky bit permission to the directory.