1.

What do you mean by the “s” permission bit in a file?

Answer»

The SUID (Set User ID) bit is known as the "s" bit. SUIDS are special FILE permissions for executable files that enable other USERS to run the file as the file owner. There will be an s (to INDICATE SUID) special permission for the user instead of the normal x, which represents EXECUTE permissions. A file that has the "s" bit set will grant the process the rights of the file's owner while the program is running.

Example: 

Executing the "passwd" COMMAND to change the password, for example, allows the user to write the new password to the shadow file even though its owner is "root".



Discussion

No Comment Found