Skip to main content
deleted 41 characters in body
Source Link
Glorfindel
  • 4.1k
  • 8
  • 36
  • 49

I was unsuccessful in replacing the /etc/sudoers file with a fresh new file and changing its permission to root:wheel and 0440.

Finally I had to go to Recovery Mode (restart → ⌘ CommandR)

  1. Mount Macintosh HD through Disk Utility
  2. Go to Terminal through Utilities
  3. cd /Macintosh HD/private/etc
  4. Edit sudoers file to correct the mistakes.
  5. Save and change permissions if needed. sudoers file needs root:wheel. If its not, sudo won't be run. chown root:wheel sudoers
  6. I had also changed the permission topermissions with chmod 0440 sudoers since I initially removed sudoers and created a fresh copy when I was logged in.
  7. To change the permissions, run chmod 0440 sudoers

I was unsuccessful in replacing the /etc/sudoers file with a fresh new file and changing its permission to root:wheel and 0440.

Finally I had to go to Recovery Mode (restart → ⌘ CommandR)

  1. Mount Macintosh HD through Disk Utility
  2. Go to Terminal through Utilities
  3. cd /Macintosh HD/private/etc
  4. Edit sudoers file to correct the mistakes.
  5. Save and change permissions if needed. sudoers file needs root:wheel. If its not, sudo won't be run. chown root:wheel sudoers
  6. I had also changed the permission to 0440 since I initially removed sudoers and created a fresh copy when I was logged in.
  7. To change the permissions, run chmod 0440 sudoers

I was unsuccessful in replacing the /etc/sudoers file with a fresh new file and changing its permission to root:wheel and 0440.

Finally I had to go to Recovery Mode (restart → ⌘ CommandR)

  1. Mount Macintosh HD through Disk Utility
  2. Go to Terminal through Utilities
  3. cd /Macintosh HD/private/etc
  4. Edit sudoers file to correct the mistakes.
  5. Save and change permissions if needed. sudoers file needs root:wheel. If its not, sudo won't be run. chown root:wheel sudoers
  6. I had also changed the permissions with chmod 0440 sudoers since I initially removed sudoers and created a fresh copy when I was logged in.

I was unsuccessful in replacing the /etc/sudoers file with a fresh new file and changing its permission to root:wheel and 0440.

Finally I had to go to Recovery Mode (restart → ⌘ CommandR)

  1. Mount Macintosh HD through Disk Utility
  2. Go to Terminal through Utilities
  3. cd /Macintosh HD/private/etc
  4. Edit sudoers file to correct the mistakes.
  5. Save and change permissions if needed. sudoers file needs root:wheel. If its not, sudo won't be run. chown root:wheel sudoers
  6. I had also changed the permission to 0440 since I initially removed sudoers and created a fresh copy when I was logged in.
  7. To change the permissions, run chmod 0440 sudoers

I was unsuccessful in replacing the /etc/sudoers file with a fresh new file and changing its permission to root:wheel and 0440.

Finally I had to go to Recovery Mode (restart → ⌘ CommandR)

  1. Mount Macintosh HD through Disk Utility
  2. Go to Terminal through Utilities
  3. cd /Macintosh HD/private/etc
  4. Edit sudoers file to correct the mistakes.
  5. Save and change permissions if needed. sudoers file needs root:wheel. If its not, sudo won't be run. chown root:wheel sudoers
  6. I had also changed the permission to 0440 since I initially removed sudoers and created a fresh copy when I was logged in.

I was unsuccessful in replacing the /etc/sudoers file with a fresh new file and changing its permission to root:wheel and 0440.

Finally I had to go to Recovery Mode (restart → ⌘ CommandR)

  1. Mount Macintosh HD through Disk Utility
  2. Go to Terminal through Utilities
  3. cd /Macintosh HD/private/etc
  4. Edit sudoers file to correct the mistakes.
  5. Save and change permissions if needed. sudoers file needs root:wheel. If its not, sudo won't be run. chown root:wheel sudoers
  6. I had also changed the permission to 0440 since I initially removed sudoers and created a fresh copy when I was logged in.
  7. To change the permissions, run chmod 0440 sudoers
fixed formatting and typos
Source Link
Allan
  • 104.4k
  • 33
  • 206
  • 470

I was unsuccessful in replacing sudoersthe /etc/sudoers file with a fresh new file and changing its permission to root:wheelroot:wheel and 04400440.

Finally I had to go to recovery modeRecovery Mode (restart -> cmd+R⌘ CommandR)

  1. Mount Macintosh HD through disk utilityDisk Utility
  2. goGo to Terminal through utilitiesUtilities
  3. go to cd Macintosh HD/private/etccd /Macintosh HD/private/etc
  4. edit sudoersEdit sudoers file to correct the mistakes.
  5. saveSave and change permissions if needed. sudoerssudoers file needs root: wheelroot:wheel. If its not, sudosudo won't be run. chown root:wheel sudoerschown root:wheel sudoers
  6. I had also changed the permission to 04400440 since I initially i removed sudoerssudoers and created a fresh copy when iI was logged in.

I was unsuccessful in replacing sudoers file with a fresh new file and changing its permission to root:wheel and 0440.

Finally I had to go to recovery mode (restart -> cmd+R)

  1. Mount Macintosh HD through disk utility
  2. go to Terminal through utilities
  3. go to cd Macintosh HD/private/etc
  4. edit sudoers file to correct the mistakes.
  5. save and change permissions if needed. sudoers file needs root: wheel. If its not, sudo won't be run. chown root:wheel sudoers
  6. I had also changed the permission to 0440 since initially i removed sudoers and created a fresh copy when i was logged in.

I was unsuccessful in replacing the /etc/sudoers file with a fresh new file and changing its permission to root:wheel and 0440.

Finally I had to go to Recovery Mode (restart ⌘ CommandR)

  1. Mount Macintosh HD through Disk Utility
  2. Go to Terminal through Utilities
  3. cd /Macintosh HD/private/etc
  4. Edit sudoers file to correct the mistakes.
  5. Save and change permissions if needed. sudoers file needs root:wheel. If its not, sudo won't be run. chown root:wheel sudoers
  6. I had also changed the permission to 0440 since I initially removed sudoers and created a fresh copy when I was logged in.
Source Link
pranav
  • 253
  • 2
  • 5
Loading