Closed andreasklinger closed 10 years ago
Just for information, what is your config ?
You're logged into the shell as user A (who's not in the sudoers list), and want to execute a task as another user B ? In your case, the user B is the one running the webserver (www-data) ?
Basically every debian squeeze default setup should do
In our case web/worker runs as "vagrant"
To recreate the setup: Download Vagrant & VirtualBox Here are our setup script (simplified) https://gist.github.com/andreasklinger/7150656
I can implement the "If the target user is the same user as the one who runs the shell. Don't use sudo" part.
Implemented in the latest release
thx mate.
In CakeResqueShell:
Calling sudo - even to sudo as one-self - requires to be part of a /etc/sudoers list.
Most users which are made to run tasks aren't in that list.
Suggested change: If the target user is the same user as the one who runs the shell. Don't use sudo.
If you find this issue through google: A workaround for this problem is to run this as root