RHEL Linux - Red Hat System Administration Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Study for the RHEL Linux - Red Hat System Administration Exam. Enhance your knowledge with flashcards and multiple-choice questions, complete with hints and explanations. Prepare for your certification!

Practice this question and more.


What result does chmod 770 produce on a file?

  1. -rwxrwx--- file

  2. -rw-rw-rw- file

  3. -rwxrw---- file

  4. -rwx----- file

The correct answer is: -rwxrwx--- file

Using the command `chmod 770` on a file sets specific permissions for the user, group, and others. The first digit '7' indicates that the owner of the file has read, write, and execute permissions (binary 111), which corresponds to 'rwx'. The second '7' means that the group also has read, write, and execute permissions, following the same binary representation. The last digit '0' denotes that others have no permissions at all. When interpreting the permissions, it becomes clear that with `chmod 770`, the resulting permission string is `-rwxrwx---`. The presence of 'rwx' for both the owner and the group means that they can fully interact with the file, while the absence of any permissions for others indicates that they cannot read, write, or execute the file. This understanding of how numerical values correspond to permission bits is crucial for managing access control in a Linux environment. Therefore, the outcome of executing `chmod 770` is correctly represented by the permission string -rwxrwx--- file.