nerdexam
CompTIA

SK0-005 · Question #242

An administrator discovers a Bash script file has the following permissions set in octal notation: 777 Which of the following is the MOST appropriate command to ensure only the root user can modify…

The correct answer is A. chmod go-rwx. chmod is a command-line tool that changes the permissions of files and directories in Linux and Unix systems. chmod go-rwx means to remove read, write, and execute permissions for group and other users from a file or directory. This can ensure only the root user can modify and…

Security and disaster recovery

Question

An administrator discovers a Bash script file has the following permissions set in octal notation:

777 Which of the following is the MOST appropriate command to ensure only the root user can modify and execute the script?

Options

  • Achmod go-rwx
  • Bchmod u=rwx
  • Cchmod u+wx
  • Dchmod g-rwx

How the community answered

(31 responses)
  • A
    71% (22)
  • B
    16% (5)
  • C
    10% (3)
  • D
    3% (1)

Explanation

chmod is a command-line tool that changes the permissions of files and directories in Linux and Unix systems. chmod go-rwx means to remove read, write, and execute permissions for group and other users from a file or directory. This can ensure only the root user can modify and execute the script, since root user has full access to all files and directories regardless of their

Topics

#File Permissions#Linux Commands#chmod#Script Security

Community Discussion

No community discussion yet for this question.

Full SK0-005 Practice