Page 1 of 1

Photorec for my OSX refuses to work

Posted: 16 Jan 2018, 17:18
by hooplaaah
As soon as I try to open the Photorec terminal file, Terminal says the following:
No disk found.
PhotoRec will try to restart itself using the sudo command to get
root (superuser) privileges.

sudo may ask your user password, it doesn't ask for the root password.
Usually there is no echo or '*' displayed when you type your password.

sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting
Saving session...
...copying shared history...
...saving history...truncating history files...
Does anybody have any idea why this is happening? I'm admittedly not terribly familiar with terminal commands, it's been years since I've used it extensively.

Thanks a ton, I'm desperate to find what I lost! Hundreds of hours on a file, gone from a careless coworker. Ugh.

Re: Photorec for my OSX refuses to work

Posted: 17 Jan 2018, 07:29
by cgrenier
To be correct, the problem is with sudo: configuration for sudo is world writable.
As root, run "chmod 0440 /etc/sudoers".