このファイルは「visudo」コマンドを使用して編集する必要があります。 [コピー]

このファイルは「visudo」コマンドを使用して編集する必要があります。 [コピー]

/etc/sudoersコマンドを使用してファイルを編集することが推奨されるのはなぜですかvisudo?以下はファイルの例です。

## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.

ここに特別な理由はありますか?

ベストアンサー1

構文を確認し、visudo有効な構成ファイルであることを確認してください。そうしないと、ファイルを編集して間違いを起こす可能性があり、構文エラーのためsudoを使用できなくなります。

おすすめ記事