nerdexam
Cisco

350-201 · Question #58

Which command does an engineer use to set read/write/execute access on a folder for everyone who reaches the resource?

The correct answer is D. chmod 777. chmod 777 assigns read, write, and execute permissions to the owner, group, and all others, giving full access to everyone who reaches the resource.

Fundamentals

Question

Which command does an engineer use to set read/write/execute access on a folder for everyone who reaches the resource?

Options

  • Achmod 666
  • Bchmod 774
  • Cchmod 775
  • Dchmod 777

How the community answered

(47 responses)
  • A
    2% (1)
  • B
    2% (1)
  • C
    6% (3)
  • D
    89% (42)

Why each option

chmod 777 assigns read, write, and execute permissions to the owner, group, and all others, giving full access to everyone who reaches the resource.

Achmod 666

chmod 666 sets rw-rw-rw-, which grants read and write to everyone but omits execute permission, so users cannot run the resource as a program or traverse it as a directory.

Bchmod 774

chmod 774 sets rwxrwxr--, giving owner and group full permissions but restricting others to read-only with no write or execute access.

Cchmod 775

chmod 775 sets rwxrwxr-x, allowing others to read and execute but not write, so it does not grant full access to everyone.

Dchmod 777Correct

In Linux octal notation, each digit represents owner, group, and others respectively. The value 7 equals read (4) + write (2) + execute (1), so chmod 777 grants full read/write/execute to all three categories of users simultaneously.

Concept tested: Linux chmod octal permission notation

Source: https://man7.org/linux/man-pages/man1/chmod.1.html

Topics

#Linux permissions#chmod#file access control#Unix commands

Community Discussion

No community discussion yet for this question.

Full 350-201 Practice