ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 187 - SK0-005 discussion

Report
Export

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?

A.
chmod go-rwx
Answers
A.
chmod go-rwx
B.
chmod u=rwx
Answers
B.
chmod u=rwx
C.
chmod u+wx
Answers
C.
chmod u+wx
D.
chmod g-rwx
Answers
D.
chmod g-rwx
Suggested answer: A

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 permissions. Reference:

https://linux.die.net/man/1/chmod

asked 02/10/2024
Mr. Michael Mettam
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first