Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Sudo permissions error


I am getting the following error:

sudo: unable to resolve host XXX
sudo: /etc/sudoers is mode 0666, should be 0440
Segmentation fault

To start xampp, I typed

sudo /opt/lampp/lampp start

Please help, How can I solve this?


share|improve this question

migrated from Mar 8 '11 at 12:20

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Stefano Palazzo Mar 8 '11 at 12:59

This question was marked as an exact duplicate of an existing question.

The permissions of this file do not change by itself. If you have not changed the permissions yourself, you could have executed a malicious script as root and have more worries. – Lekensteyn Mar 8 '11 at 12:56

Please check the following :

1.sudo gedit /etc/hosts
2.if ip address and hostname not there please write them and save the file.

Please feed us back if you still facing same problem !

share|improve this answer
and you can change permission by: sudo chmod 0440 /etc/sudoers – moata_u Mar 8 '11 at 12:35
that will not work. You cannot fix sudo with sudo. The user needs to boot in recovery mode in order to set the right permissions. – Lekensteyn Mar 8 '11 at 12:54
@Lekensteyn , you write user need boot from live cd and mount the partition that include file system and changed the partition ...sorry :) – moata_u Mar 8 '11 at 13:11
No, I meant the user should hold SHIFT to get the GRUB2 menu and choose "Recovery mode" instead of the usual boot entry. From there, choose "Root prompt" and run chmod 440 /etc/sudoers. (note that 0440 and 440 are the same thing) – Lekensteyn Mar 8 '11 at 13:29