O'Reilly logo

Fundamentals of Linux by Oliver Pelz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

setuid

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required