$ sudo su >>> sudoers file: syntax error, line 2 <<< >>> sudoers file: syntax error, line 16 <<< >>> sudoers file: syntax error, line 17 <<< >>> sudoers file: syntax error, line 17 <<< >>> sudoers file: syntax error, line 18 <<< sudo: parse error in /etc/sudoers near line 2那把 /etc/sudoers 印出來看看:
# cat /etc/sudoers # /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # See the man page for details on how to write a sudoers file. # Host alias specification # User alias specification # Cmnd alias specification # Defaults Defaults !lecture,tty_tickets,!fqdn # User privilege specification root ALL=(ALL) ALL jserv ALL=(ALL) ALL奇怪,用 sudo 好幾年,還是第一次發生這種怪事,似乎是不吃 '#' 當作註解,真詭異!
我的没问题
版本 1.6.8p12