Which of the following commands sets the SetUID permission on the executable /bin/foo?

Which of the following commands sets the SetUID permission on the executable /bin/foo?
A. chmod 4755 /bin/foo
B. chmod 1755 /bin/foo
C. chmod u-s /bin/foo
D. chmod 755+s /bin/foo
E. chmod 2755 /bin/foo

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “Which of the following commands sets the SetUID permission on the executable /bin/foo?

  1. You need to know how to read groups and how to calculate the permission.
    https://chmodcommand.com/chmod-4755/
    Play with SetUID and SetGID and it should dawn on you how it works.

    Also here is a good video with how it works and calculate without the User ID (UID) and Group ID (GID)

    1
    1

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.