Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor scripts enabling direct execution by user www-data #49

Open
martignoni opened this issue Jul 23, 2018 · 1 comment
Open

Refactor scripts enabling direct execution by user www-data #49

martignoni opened this issue Jul 23, 2018 · 1 comment
Assignees
Labels
Type: enhancement New feature or request
Milestone

Comments

@martignoni
Copy link
Member

martignoni commented Jul 23, 2018

Idea: get rid of current complicated way to run root-only commands via cron.

How: enable some carefully chosen commands to be run by user www-data using sudo. This involves enabling some commands in /etc/sudoers file, e.g.

www-data ALL=(ALL) NOPASSWD:/usr/sbin/reboot
@martignoni martignoni added the Type: enhancement New feature or request label Jul 23, 2018
@martignoni martignoni added this to the 1.12 milestone Jul 23, 2018
@martignoni martignoni self-assigned this Jul 23, 2018
@martignoni martignoni changed the title Refactor scripts using sudo Refactor scripts enabling direct execution by user www-data Jul 23, 2018
@martignoni
Copy link
Member Author

Create new sudoers file and add there the selected commands.

sudo visudo -f /etc/sudoers.d/020_www-data-nopasswd

@martignoni martignoni modified the milestones: 1.12, Future version Aug 14, 2018
@martignoni martignoni modified the milestones: 2.0.0, 2.5.0 Feb 28, 2019
@martignoni martignoni modified the milestones: 2.1.0, 2.5.0 May 15, 2019
@martignoni martignoni modified the milestones: 2.5.0, 2.6.0 Feb 8, 2020
@martignoni martignoni modified the milestones: 2.6.0, 2.7.0 May 28, 2020
@martignoni martignoni modified the milestones: 2.7.0, 2.8.0 Jul 23, 2020
@martignoni martignoni modified the milestones: 2.8.0, 3.0.0 Oct 29, 2020
@martignoni martignoni modified the milestones: 3.0.0, 3.1.0 Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant