Red Hat Certified Systems Admin (RHCSA) EX200 Practice Exam

Session length

1 / 20

Which command sets the sticky bit on a directory such as /shared?

chmod -t /shared

chmod +t /shared

The sticky bit is a special permission on directories that prevents users from deleting or renaming files owned by others inside that directory. To enable it, you add the sticky bit with chmod using add mode, which leaves existing permissions intact: chmod +t /shared. This is why that option is the best choice here—the command explicitly turns on the sticky bit without altering the other permissions.

The other options don’t set the sticky bit. Removing it with -t would clear the sticky bit. Adding only +x changes execute permissions and does not touch the sticky bit. Using 0777 changes the standard read/write/execute bits for user, group, and others but does not enable the sticky bit, since the special-permission digit (the leading digit) remains 0; to include sticky with numeric mode you’d use something like 1777.

chmod 0777 /shared

chmod +x /shared

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy