S
S
Schoolboy.2015-10-19 13:39:10
PHP
Schoolboy., 2015-10-19 13:39:10

How to give www-data permission to execute commands as root on UBUNTU?

On Debian in /etc/sudoers I entered: www-data ALL=(root) NOPASSWD: ALL And the commands from sudo were executed.
I entered the same thing on UBUNTU and nothing works, what did I do wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Schoolboy., 2015-10-19
@viphorizon

SWITCHED TO DEBIAN, EVERYTHING WORKED!

A
Andrew, 2015-10-19
@R0dger

Should be the same. it's the same Debian. try calling a new console and there already try as this user.. but it's bad practice.. to give root rights from this user.
try again like this.
www-data ALL=(ALL:ALL) ALL

A
Alexey Ostin, 2015-10-19
@nitso

Is it worth mentioning that this is not necessary? :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question