[[email protected] etc]# chmod a+w sudoers
[[email protected] etc]# vi sudoers
[[email protected] etc]# chmod a-w sudoers
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
hadoop ALL=(ALL) NOPASSWD: ALL
时间: 2024-10-11 16:06:58