문서의 이전 판입니다!
/etc/sudoers 편집은 visudo 명령으로 한다.
사용자를
최신 Ubuntu 버전에서는 /etc/group에서 wheel 그룹에 추가해 두어야 한다.sudo 그룹에 이미 추가 돼 있으며 sudo 그룹만 조정하면 된다.
%sudo ALL=(ALL) NOPASSWD: ALL # 비밀번호 없이 # or %wheel ALL=(ALL) NOPASSWD: ALL # 비밀번호 없이
%wheel 설정이 기본으로 /etc/sudoers.d/10-installer에 들어있어서 덮어 써버린다./etc/sudoers.d/100-my-no-password 파일을 별도로 추가해줘야 한다. %wheel ALL=(ALL) NOPASSWD: ALL
%users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom %users localhost=/sbin/shutdown -h now # 로컬 접속자에 한해서 shutdown -h now 허용