0
이것은 새로운 우분투 ec2 상자의 sudoers 파일입니다. sudo su
에 비밀번호가 필요한 이유는 무엇입니까?sudo에서 암호를 묻지 못하는 이유는 무엇입니까?
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) PASSWD:ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) PASSWD:ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) PASSWD:ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
지연이 있습니까? bashrc 파일을 사용하는 것과 비슷하게 "소스"한다고 생각하십니까? sudo su
이 비밀번호를 요구하는 이유는 무엇입니까?
편집 : 실행 this 당 링크 :
sudo passwd ubuntu
sudo perl -pi -e 's/^(ubuntu.*)NOPASSWD:(.*)/$1$2/' /etc/sudoers
이 작동하지 않으며, 심지어의 sudoers 파일을 변경 않습니다.