Pages

Wednesday, June 9, 2010

setuid and getuid program execution

http://en.wikipedia.org/wiki/Setuid

The sticky bit on user or group causes the command to run as that user or group
chmod ug+s printid

I typically used this on the group of a directory forces the sub files/folders to be in the same group.

This is also how commands that require root level are able to be executed.

You can prevent this from happening by mounting a partition with the nosuid option.