sudoers www-data popup

Issue #256 resolved
Former user created an issue

I am using the pre-built VMware image you created. I get the following message when attempting to apply a archiving/retention policy

add the following to /etc/sudoers: 'www-data all=nopasswd: /etc/init.d/rc.piler reload'

I added the line as it prompted, rebooted the OS and message still appears. Ideas?

Comments (6)

  1. Janos SUTO repo owner

    Please check if you can execute the following command by the www-data user:

    sudo -n /etc/init.d/rc.piler reload

  2. john_cottage

    root@piler:~# su www-data $ sudo -n /etc/init.d/rc.piler reload sh: 1: sudo: not found

    Looks like sudo was not installed. Installed I installed sudo apt-get install sudo then configured

    i get this

    root@piler:~# su www-data $ sudo -n /etc/init.d/rc.piler reload sudo: unable to resolve host piler sudo: sorry, a password is required to run sudo

  3. Janos SUTO repo owner

    Please check /etc/hostname and /etc/hosts whether "piler" is a resolvable hostname. Anyway could you attach your /etc/sudoers file?

  4. Anderson Freitas

    Dear jsuto,

    If you are using Piler on a Centos distro, permission in sudoers in the case should be granted to the User "apache", correct?

    EX:

    # / etc / sudores apache ALL = NOPASSWD: / etc / init.d / piler reload

    Realized settings and even then the popup appears:

    Add the following to / etc / sudoers: 'www-data ALL = NOPASSWD: / etc / init.d / rc.piler reload'

    If you can give me tips on how to solve this issue thanks.

  5. Janos SUTO repo owner

    The popup text is a generic help to give an idea to a system admin what to do to make this feature work. I didn't put too much effort to custom tail it to match different webserver users, so in a nutshell you are right, on centos you should use "apache", not "www-data".

  6. Log in to comment