I have non-privileged access to a Linux server (shared PHP+MySQL hosting) and there are disk space, memory, CPU usage, I/O quotas.
I wonder how can I get information about max/current quota usage from SSH shell?
cgroupslinuxquota
I have non-privileged access to a Linux server (shared PHP+MySQL hosting) and there are disk space, memory, CPU usage, I/O quotas.
I wonder how can I get information about max/current quota usage from SSH shell?
Best Answer
Granting Access to Specific Files as Another User
The
sudo -u
entry allows allows you to execute a command as if you were another user, but first you have to be granted this privilege in thesudoers
file. This feature can be convenient for programmers who sometimes need to kill processes related to projects they are working on. For example, programmer peter is on the team developing a financial package that runs a program calledmonthend
as user accounts. From time to time the application fails, requiring "peter" to stop it with the/bin/kill
,/usr/bin/kill
or/usr/bin/pkill
commands but only as user "accounts". Thesudoers
entry would look like this:User
peter
is allowed to stop themonthend
process with this command: