- Plesk for Linux
How to allow a user to recalculate statistics?
By default, a user has no rights to execute the statistic utility.
# plesk sbin statistics --calculate-one --domain-name=example.com
To allow the user to execute the statistics utility, add the user to sudoers.
It can be done using the following steps:
- Connect to the server using SSH.
- Edit the file
/etc/sudoedrsby using a text editor or using the command
- Add the following line to this file:
CONFIG_TEXT: user_name ALL=(ALL) NOPASSWD:/usr/local/psa/admin/sbin/statistics
After that, the user can execute statistics utility using
# sudo plesk sbin statistics --calculate-one --domain-name=example.com
Note: the user should have SSH access to the server.