There is a system user myuser and a program /usr/bin/myprogram. How to run this program by this user and with cap_sys_nice capability?
[email protected]:~# capsh –caps=’cap_sys_nice+eip’ –user=myuser /usr/bin/myprogram
Unable to set group list for user: Operation not permitted
[email protected]:~# capsh –user=myuser –caps=’cap_sys_nice+eip’ /usr/bin/myprogram
Unable to set capabilities [–caps=cap_sys_nice+eip]
Normally it is launched as a systemd service but I want to check it separately.