ubuntu - regular user can't read /proc/net/dev -



ubuntu - regular user can't read /proc/net/dev -

i'm pretty sure i'm missing here, i'm not sure what:

this root can see:

root@opteron16:/# ls -l | grep proc dr-xr-xr-x 290 root root 0 2012-01-14 02:03 proc root@opteron16:/# ls -l proc | grep net lrwxrwxrwx 1 root root 8 2012-01-21 03:29 net -> self/net root@opteron16:/# ls -l proc/net/ | grep dev -r--r--r-- 1 root root 0 2012-01-14 02:05 dev

this ganglia user:

root@opteron16:/# cat /etc/passwd | grep ganglia ganglia:x:111:119:ganglia monitor:/var/lib/ganglia:/bin/false

when seek access /proc/net/dev user:

root@opteron16:/# su -s /bin/bash ganglia ganglia@opteron16:/$ ls -l /proc | grep net lrwxrwxrwx 1 root root 8 2012-01-21 19:49 net -> self/net ganglia@opteron16:/$ ls -l /proc/net/ ls: reading directory /proc/net/: invalid argument total 0 ganglia@opteron16:/$ cat /proc/net/dev cat: /proc/net/dev: no such file or directory

would great not sense stupid : ).

edit

this i've noticed , i've never seen such behaviour before:

root@opteron16:/proc# ls -l | grep "self -" lrwxrwxrwx 1 root root 64 2012-01-22 00:01 self -> 29095 root@opteron16:/proc# ls -l | grep "self -" lrwxrwxrwx 1 root root 64 2012-01-22 00:01 self -> 29097 root@opteron16:/proc# ls -l | grep "self -" lrwxrwxrwx 1 root root 64 2012-01-22 00:01 self -> 29099

most likely, due kernel has been compiled grsec. i.e.

$ uname -a linux xxxx 3.2.13-grsec-xxxx-grs-ipv6-64 #1 smp thu mar 29 09:48:59 utc 2012 x86_64 x86_64 x86_64 gnu/linux

i have seen happen on servers hosted ovh since default kernel install enable netboot through admin tools.

to summarize, can 1 of:

run programme root (+1 security ovh !) install default ubuntu kernel on box scream while (my favorite)

ubuntu permissions

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -