The question is about capabilities.
I need to allow user to set capabilities using setcap.
When I call it by root all goes fine, eg $ sudo setcap cap_dac_override,cap_dac_read_search+ep ./bin_file
$ getcap ./bin_file
./bin_file = cap_dac_override,cap_dac_read_search+ep
but when i run the command with user privileges...
$ /sbin/setcap cap_dac_override,cap_dac_read_search+ep ./bin_file
unable to set CAP_SETFCAP effective capability: Operation not permitted
I added the following string into /etc/security/capability.conf
:
cap_setfcap,cap_dac_override,cap_dac_read_search user
but it still doesn't work.