Linux 管理者は、起動時に実行されるスクリプトを作成しました。スクリプトの作成に成功した後、スクリプトを実行しようとすると、管理者は次の出力を受け取りました。 Bash ./startup,sh:許可が拒否されました 次のコマンドのうち、エラー メッセージを最もよく解決できるものはどれですか?
正解:C
This is the command that would best resolve the error message "Bash ./startup.sh: Permission denied" when trying to execute a script on Linux. Chmod is a command that changes the permissions of files or directories on Linux. +x is an option that adds the execute permission to the file or directory for the owner, group, and others. startup.sh is the name of the script file that needs to be executed. By running chmod +x startup.sh, the technician grants execute permission to the script file and allows it to be run by any user. Chmod +w startup. sh would add write permission to the file, but not execute permission. Chmod 444 startup.sh would set read- only permission for all users, but not execute permission. Chmod 466 startup.sh would set read and write permission for the owner and write-only permission forgroup and others, but not execute permission. References:https://www.howtogeek.com/437958/how-to-use-the-chmod-command-on-linux