Discuss how you can set the SUID bit and the GUID bit.

What will be an ideal response?


You set the SUID bit with chmod, using one of the following:
•  Permissions of the owning user (such as chmod u+s /usr/bin/passwd)
•  Numerically (such as chmod 4755 /usr/bin/passwd)
Each user is allowed to change his password, but root permissions are needed to write it into the /etc/shadow file.
You set the SGID bit with chmod, using one of the following:
•  Permissions of the group (such as chmod g+s /tmp)
•  Numerically (such as chmod 2777 /directory)

Computer Science & Information Technology

You might also like to view...

The default effect of SIGCHLD on a parent process is

A. nothing B. the process is terminated

Computer Science & Information Technology

A ________ is a visual representation of information and ideas

A) chart area B) trendline C) SmartArt graphic D) template

Computer Science & Information Technology

Which of the following is a request for specific data from a database?

A. query B. index C. ask D. inquiry

Computer Science & Information Technology

The __________ operator performs division and returns the remainder.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology