| OS X - Operating System General OS operation information and support |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Jun 27, 2011
Location: Riverside CA
Posts: 15
![]() Mac Specs: I've had an iMac for over a year and got an Air when the new ones came out several months ago.
|
|
| QUOTE Thanks | |
![]() Member Since: Jul 02, 2007
Location: Going Galt...
Posts: 3,125
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: MacBookAir5,2:10.8.3-MacMini3,1:10.8.3-iPhone3,1:6.1.3
|
Revert to a backup from Time Machine?
OR, here's a sample: Permissions: -r--r----- 1 root wheel 1275 Jul 28 10:05 sudoers # sudoers file. # # This file MUST be edited with the 'visudo' command as root. # Failure to use 'visudo' may result in syntax or file permission errors # that prevent sudo from running. # # See the sudoers man page for the details on how to write a sudoers file. # # Host alias specification # User alias specification # Cmnd alias specification # Defaults specification Defaults env_reset Defaults env_keep += "BLOCKSIZE" Defaults env_keep += "COLORFGBG COLORTERM" Defaults env_keep += "__CF_USER_TEXT_ENCODING" Defaults env_keep += "CHARSET LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE" Defaults env_keep += "LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME" Defaults env_keep += "LINES COLUMNS" Defaults env_keep += "LSCOLORS" Defaults env_keep += "SSH_AUTH_SOCK" Defaults env_keep += "TZ" Defaults env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY" Defaults env_keep += "EDITOR VISUAL" Defaults env_keep += "HOME MAIL" # Runas alias specification # User privilege specification root ALL=(ALL) ALL %admin ALL=(ALL) ALL # Uncomment to allow people in group wheel to run all commands # %wheel ALL=(ALL) ALL # Same thing without a password # %wheel ALL=(ALL) NOPASSWD: ALL # Samples # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom # %users localhost=/sbin/shutdown -h now ,_____o00o _ //___l__,\____\,__ l_--- \___l---OlllllllO (o)_)-o- (o)_)--o-)_) |
| QUOTE Thanks | |
![]() Member Since: Jun 27, 2011
Location: Riverside CA
Posts: 15
![]() Mac Specs: I've had an iMac for over a year and got an Air when the new ones came out several months ago.
|
|
| QUOTE Thanks | |
![]() Member Since: Oct 19, 2008
Location: Ottawa
Posts: 15,309
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2012 13" MBP (2.5 i5, 8GB)
|
Create it elsewhere, open up Finder, push Shift-Command-G, enter /etc, paste. Nice and simple.
Important Links: Community Guidelines : Use the reputation system if you've been helped. M-F Blog :: Write for the blog :: M-F IRC Channel - Chats every Sunday at 8PM EST. |
| QUOTE Thanks | |
![]() Member Since: Jun 27, 2011
Location: Riverside CA
Posts: 15
![]() Mac Specs: I've had an iMac for over a year and got an Air when the new ones came out several months ago.
|
I sent a copy of the file to me from another mac and the problems persist. I can't use sudo chown ... because the sudoers file doesn't have the right permissions neither can I use sudo chmod ... for the same reason. I almost wich I had created a root user, but that's bad secuirity. |
| QUOTE Thanks | |
![]() Member Since: Oct 19, 2008
Location: Ottawa
Posts: 15,309
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2012 13" MBP (2.5 i5, 8GB)
|
Enable the root user then and use that to recreate the sudoers file (more info here).
Important Links: Community Guidelines : Use the reputation system if you've been helped. M-F Blog :: Write for the blog :: M-F IRC Channel - Chats every Sunday at 8PM EST. |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| dock on mountain lion | markyb | OS X - Operating System | 18 | 08-05-2012 04:47 AM |
| UPGRADE to Mountain Lion? | evangelist6589 | OS X - Operating System | 2 | 07-27-2012 12:31 PM |
| Can you guys open this site? | Desolate One | OS X - Apps and Games | 13 | 04-29-2005 01:23 PM |
All times are GMT -4. The time now is 06:48 PM.
Powered by vBulletin