Ram-Ram to All bhai jis I am Deepak Saini again and try to explain the SUID (super user id or set user id )
SUID / Set User ID :
A program is executed with the file owner's permissions (rather than with the permissions of the user who executes it).
SGID / Set Group ID : Files created in the directory inherit its GID, i.e When a directory is shared between the users , and sgid is implemented on that shared directory , when these users creates directory, then the created directory has the same gid or group owner of its parent directory.
Sticky Bit : It is used mainly used on folders in order to avoid deletion of a folder and its content by other user though he/she is having write permissions. If Sticky bit is enabled on a folder, the folder is deleted by only owner of the folder and super user(root). This is a security measure to suppress deletion of critical folders where it is having full permissions by others.
Permissions Description
0 nothing
1 Sticky Bit
2 SGID
3 SGID and Sticky BIT
4 SUID
5 SUID and Sticky Bit
6 SUID and SGID
7 SGID ,SUID and Sticky Bit
How we are set the SUID ,SGID or Sticky Bit
Synatx :- chmod <suid,sticky or sgid><permission of file>
Thanks For Reading And Sorry for my RIP english jai HIND
SUID / Set User ID :
A program is executed with the file owner's permissions (rather than with the permissions of the user who executes it).
SGID / Set Group ID : Files created in the directory inherit its GID, i.e When a directory is shared between the users , and sgid is implemented on that shared directory , when these users creates directory, then the created directory has the same gid or group owner of its parent directory.
Sticky Bit : It is used mainly used on folders in order to avoid deletion of a folder and its content by other user though he/she is having write permissions. If Sticky bit is enabled on a folder, the folder is deleted by only owner of the folder and super user(root). This is a security measure to suppress deletion of critical folders where it is having full permissions by others.
Permissions Description
0 nothing
1 Sticky Bit
2 SGID
3 SGID and Sticky BIT
4 SUID
5 SUID and Sticky Bit
6 SUID and SGID
7 SGID ,SUID and Sticky Bit
How we are set the SUID ,SGID or Sticky Bit
Synatx :- chmod <suid,sticky or sgid><permission of file>
Thanks For Reading And Sorry for my RIP english jai HIND
0 comments:
Post a Comment