Thread: posix capabilities problem
hello all,
i'm trying grant user cap_sys_resource posix capability on ubuntu 10.04 machine. need process run user can write /proc/self/oom_adj (yes realize this deprecated i'm going stuck on kernel 2.6.32 while).
i've installed libcap2 , libcap2-bin. i've granted user cap_sys_resource capability in /etc/security/capability.conf , i've verified pam_cap.so loaded via pam i'm still unable lower oom_adj score. i've re-initiated sessions after change file , have rebooted.
code:$ cat /proc/$$/oom_adj 0 $ echo -1 > /proc/$$/oom_adj -bash: echo: write error: permission denied $ echo 1 > /proc/$$/oom_adj $ cat /proc/$$/oom_adj 1(yes username delete)code:$ egrep -v "^#" /etc/security/capability.conf cap_sys_resource delete none *
missing here? doing wrong? pointers appreciated.
thanks!
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] posix capabilities problem
Ubuntu
Comments
Post a Comment