Now let's talk about setuid, setgid, and the sticky bit. As we work with users, groups, and file permissions, let's first log in as root.
First, let's create a new user, group, and the copy of the whoami command locally to see what's going on with the setuid flag:
Next, let's change the file owner and group owner of this command to awesome_user and awesome_group:
Setting the setuid, setgid, and the sticky bit can also be done using octal notations. You already know about them from the file permissions chapter. These special permissions ...