Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Operating System (http://www.mac-forums.com/forums/os-x-operating-system/)
-   -   Sudo not working (http://www.mac-forums.com/forums/os-x-operating-system/241722-sudo-not-working.html)

buligjigandi 06-18-2011 12:01 PM

Sudo not working
 
hi.
in my mac os x 10.6.7 I can't make sudo
when I try executing sudo I get:

sudo: can't stat /etc/sudoers: No such file or directory
Segmentation fault


Any idea or help?

Dysfunction 06-18-2011 01:45 PM

Did you modify the file?

buligjigandi 06-18-2011 05:29 PM

I dont think so. I had to perform a "check and repair permissions" and then "check and repair disk" using a Mac OS DVD. I think the problems started after these operations: some applications don't start at all and the present issue with sudo

Dysfunction 06-18-2011 05:38 PM

Sounds like larger issues, have a backup? I'd personally just do a restore of the disk, or lacking a good backup, the OS.

buligjigandi 06-19-2011 05:10 AM

It's strange. I can start Chrome, Safari and some other apps, but some other don't start at all like Firefox, Thunderbird, TexShop, etc.

claytab 08-01-2011 03:31 PM

sudo
 
I am also having problems working with sudo in terminal.

I'm trying to copy my php.ini.default to php.ini
When I open my terminal, I put in all the correct data (see below) but when I am asked for my password, it freezes and the only way i can do anything is to hit enter, all other characters are disabled?? -- Can anyone help??


Last login: Mon Jul 27 12:43:39 on console
Maxod-Man-5:~ abbs$ cd /private/etc
Maxod-Man-5:etc abbs$ ls php*
php.ini.default
Maxod-Man-5:etc abbs$ sudo cp php.ini.default php.ini

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
Sorry, try again.
Password:
Sorry, try again.
Password:


?? _ what do I have to do ..

EvenStranger 08-01-2011 03:37 PM

As far as the comment above goes, the password field won't acknowledge you're typing anything, but it's taking it.

claytab 08-01-2011 04:49 PM

Quote:

Originally Posted by EvenStranger (Post 1276175)
As far as the comment above goes, the password field won't acknowledge you're typing anything, but it's taking it.

thanks for the prompt reply, works fine and I now have php installed :)


All times are GMT -4. The time now is 07:05 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.