» Linux »
Examen sur Linux »
Examen 202 : Networking Administration »
Section 1 »
Question 19/20
Explanation: The usual mode (permissions) for the /tmp directory is read, write and execute for
everybody. Read has a value of 4, write has a value of 2 and execute has a value of 1. When you
add these values together you get 7. In this answer (1777), the first 7 means rwx permissions for the
file owner. The second 7 means rwx permission for the user’s group and the third 7 means rwx
permission for everyone else. The 1 means ‘sticky’. This means that although everyone has full
permissions on the directory, a user cannot delete files that the user doesn’t own.
Reference: http://www.comptechdoc.org/os/linux/usersguide/linux_ugfilesp.html
http://lightfocus.com/ebook/m020312.htm
Incorrect Answers
A: This sticky bit (1) is set by default on the /tmp directory.
B: Everyone has rwx (7) permission on the /tmp directory.
C: The first 7 is invalid.