In simple words, users will receive the permissions of the file owners, as well as the owner UID and GID when executing the file / program. This will not change the owner of the file.
If you entered the program: rwsrwxr-- or rwxr - rwx
What is the difference if I set the SUID permission (for owners) or World permission (other)? in both cases, the user can run the program?
rwxr-rwx, "", , , , , - .
rwsrwxr - ""
, x , SUID, , .
Btw, SUID, , SUID ( ) bash
, , , . , suid .
, , suid , , , suid bit , , suid bit , , . , , suid x () perm.
x
.
, , suid, onwer.
For example, a command passwdwill read and write to / etc / shadow with permission rw-r-----, but you can call this command, why? reason hidden in suid problem.
passwd
rw-r-----
because by using the suid bit_ function, you run the application as user user permission, and not another user permission
Source: https://habr.com/ru/post/1673339/More articles:printf newline has a string buffer? - cJ2V8 and Stetho - androidfork () and "\ n" - cnpm - set default prefix / path for a specific project - node.jsHow to verify that the host docker is in swarm mode? - dockerIn Javascript, why is the minimum pool with an expanded Infinity array? - javascriptScalaTest: how to assert Try values correctly? - scalatestNodeJS ExpressJS - How to log errors for a production server? - node.jsusing declarations for a template function of a template base class - c ++How to validate Try [T] using ScalaTest? - scalaAll Articles