O'Reilly logo

CFEngine 3 Beginner's Guide by Rajneesh

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

Time for action - finding a file with setuid and setgid

The SUID or SGID bits are special attributes, for a file, provided in Unix or Linux-like operating systems besides the read/write/execute permissions. The SUID attributes 'set' for a file mean that while executing the file, your user would be set as the owner of the file. If the SUID bit is not set, the user has to type su and get temporary superuser access to execute the file. This may be a security risk if the SUID bit is set for scripts or commands which have root as their owner, because the scripts or commands will be executed with superuser privilege even when the script is being executed with an unprivileged user.

  1. Let's write a promises file to find scripts or commands that have the ...

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