1. SetUserID (Set UID): This is a permission that is set on executable files or directories. When a user executes a file with the Set UID bit set in Linux, the process's effective user ID is changed to the owner of the executable file. It allows unprivileged users to execute a file with the privileges of the file's owner.
2. SetGroupID (Set GID): This is similar to SetUserID, but with group IDs instead of user IDs. When a user with the Set GID bit set in Linux runs a file, the process will be executed with the group ID of the executable file instead of the user's default group.
3. Sticky Bit: This is a permission that is set on directories. It is used to prevent the deletion of files within a directory by users who are not the owner of the files, but who have write access to the directory.
4. Text Bit: This is a permission that is available on executable files. It is used to indicate to the operating system that a file is meant to be executable as a program and should not be viewed as a text file.
5. Group Execution Bit: This is a permission that is available on executable files, and allows a user to execute a file with the permissions of the group that owns the file.
To set these special permissions in Linux, the ‘chmod’ command can be used in conjunction with the applicable octal number.
For example, to set the Set UID bit, you would use the command ‘chmod 4500 filename’. To set the Stick Bit, you would use the command ‘chmod 1750 directoryname’.
Linux special permissions include:
1. SUID (set user ID): This special permission allows users to execute a file with the same privileges as the owner of the file. It is used for programs that need to access system resources. To set SUID, use the command 'chmod u+s <file>'.
2. SGID (set group ID): This special permission allows all members of a group to execute a file with the same privileges as the group owner. It is used for programs that need to access system resources. To set SGID, use the command 'chmod g+s <file>'.
3. Sticky bit: This special permission prevents regular users from deleting files they don't own in the same directory. It is used to protect the integrity of the directory. To set the sticky bit, use the command 'chmod o+t <file>'.
4. ACL (access control list): This special permission allows user to have more flexibility in assigning permissions. It is used to grant multiple users or groups access to files without having to change the owner of the file. To set ACL, use the command 'setfacl -m <permissions> <file>
No hay comentarios:
Publicar un comentario