Jump to content

how to fix sudo permissions


  • Please log in to reply
1 reply to this topic

#1
ergot

ergot

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 181 posts
Hi

I am trying to enter root directory but i am getting this:

sudo: /private/etc/sudoers is mode 0666, should be 0440
sudo: no valid sudoers sources found, quitting

how can i fix it?
Thanks

#2
Lanceomni

Lanceomni

    infinitemac.com (φοίνιξ) !

  • Donators
  • 614 posts
  • Gender:Male
  • Location:Florida
Open terminal and type:
diskutil repairpermissions /

If this does not correct your issues, you can correct this file in Single User Mode.
Restart using the boot-flag -s

Then type:
/sbin/mount -wu /
chown -R 440 /private/etc/sudoers

Restart using the boot-flag -v





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy