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 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. References:https://linux.die.net/man/1/chmod