Skip to main content

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
code:
$ egrep -v "^#" /etc/security/capability.conf     cap_sys_resource delete        none *
(yes username delete)

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

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?