We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
shell_exec("journalctl"); user permissions
shell_exec("journalctl"); user permissions
I'm trying to get log messages of journalctl from PHP, but getting an error - "Hint: You are currently not seeing messages from other users and the system. Users in the 'systemd-journal' group can see all messages."
Tried to put into /etc/sudoers.d/admin these lines one by one but none of them worked
shell_exec("sudo -l"); - doesn't indicate that this privilege has been granted
How can I grant privilege to php shell_exec sudo on CENTOS 7 to get this request?
Code: Select all
shell_exec('whoami') //shows "admin"
Code: Select all
%admin ALL=(root) NOPASSWD: /usr/sbin/journalctl
admin ALL=NOPASSWD: /usr/sbin/journalctl
%admin ALL=(ALL) ALL
www-data ALL=NOPASSWD: ALL
How can I grant privilege to php shell_exec sudo on CENTOS 7 to get this request?