2 Replies Latest reply: Aug 27, 2008 2:41 AM by Pelorus1
Pelorus1 Level 1 Level 1 (35 points)
Hi,

I'm a new UNIX user and I'm having trouble with SUDO. I don't try and run it myself usually but if a script tries to use it it throws an error.

When I do try (for troubleshooting reasons) to run SUDO from the terminal it throws the following error:

sudo: /private/etc/sudoers is mode 0666, should be 0440

I am logged in as an admin user, I have read write access to etc/sudoers and there is an entry in etc/sudoers to allow admin users to do ALL/ALL.

Any help would be gratefully accepted, bearing in mind I'm a newbie.

Many thanks

Mike

Message was edited by: zuline

MacBook, Mac OS X (10.5.4)
  • SillyWilly Level 1 Level 1 (90 points)
    Your /etc/sudoers file has somehow got the wrong file permissions. You could fix this using chmod but ironically I think you would need to use sudo to do that. So instead, try using Disk Utility in /Applications/Utilities select your HD and chose Repair Disk Permissions from the First Aid tab. It will take a while but hopefully it will sort out your problem.
  • Pelorus1 Level 1 Level 1 (35 points)
    G'day S/W.

    that appears to have fixed the problem.

    Thanks for your help.

    Regards

    Mike