I was interested in learning how to use Linux, but while studying SUID and GUID I have had trouble understanding exactly what it does. Now I know that it grants permissions of the user or group, but how exactly ?
Here's the thing I don't quite get; if a file has SUID bit set, does that mean another user that's neither in the group nor the original owner has now the same permissions on that file as the owner of the file. For example a file has these permissions set:
Does that mean that a user that's part of the other category now has owner-level privileges for that file?
Same thing for GUID: if the
s bit is set, does everyone have the the same permissions as the group?
Does that mean that all -other users have the same permissions as the group (read and write).
Also, what's the purpose of such a feature and why is the
x (execute) permission always omitted when I see the
s bit set?