nerdexam
CompTIACompTIA

SK0-005 · Question #242

SK0-005 Question #242: Real Exam Question with Answer & Explanation

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 ex

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

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 PracticeBrowse All SK0-005 Questions