QuestionQ67

Security and File Permissions

Which permissions are assigned to a regular file after its permissions are changed with the command chmod 654 file.txt?

  • A drw-r-xr--
  • B d-wxr-x--
  • C -wxr-x--x
  • D -rwxrw---x
  • E -rw-r-xr--
Explanation

Numeric mode 654 sets rw- for the owner, r-x for the group, and r-- for others. A regular file is denoted by a leading -, so its resulting mode is -rw-r-xr--.

Community Discussion

No comments yet. Be the first to start the discussion!