Installed on VDS I have Ubuntu 14.04. If you just register sudo , then we get quite unpleasant:

 >>> /etc/sudoers: syntax error near line 9 <<< >>> /etc/sudoers: syntax error near line 9 <<< >>> /etc/sudoers: syntax error near line 9 <<< >>> /etc/sudoers: syntax error near line 9 <<< >>> /etc/sudoers: syntax error near line 10 <<< >>> /etc/sudoers: syntax error near line 11 <<< >>> /etc/sudoers: syntax error near line 12 <<< >>> /etc/sudoers: syntax error near line 13 <<< >>> /etc/sudoers: syntax error near line 14 <<< >>> /etc/sudoers: syntax error near line 15 <<< >>> /etc/sudoers: syntax error near line 16 <<< >>> /etc/sudoers: syntax error near line 17 <<< >>> /etc/sudoers: syntax error near line 18 <<< >>> /etc/sudoers: syntax error near line 19 <<< >>> /etc/sudoers: syntax error near line 19 <<< sudo: parse error in /etc/sudoers near line 9 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin 

That is, it is already clear that something is wrong with /etc/sudoers . Here is the content of /etc/sudoers :

 # # 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" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d 

But according to the contents of the /etc/sudoers file, everything should be fine. What else could be the problem? Or is it still in /etc/sudoers ?

  • a finger to the sky ... can the ends of the string windows? - Fat-Zer
  • I understand @ Fat-Zer, do you mean that I was rewriting content from under Windows? - e4sylock 7:42 pm
  • Perhaps you askubuntu.com/questions/73864/… here - de_frag
  • @defrag there is a bit different campaign - e4sylock
  • @ e4sylock, I mean, this is a syndrome ... exactly how they got there - I don’t know ... cat -A to confirm, sed -i 's / \ r //' (with the corresponding change of rights) to fix ... - Fat-Zer

0