Linux: permission to read file from /sys/kernel/debug wihout root privileges
Posted
by
gogowitczak
on Super User
See other posts from Super User
or by gogowitczak
Published on 2012-11-23T14:52:10Z
Indexed on
2012/11/23
17:09 UTC
Read the original article
Hit count: 192
I'd like to read small text file, located at: /sys/kernel/debug/vgaswitcheroo/switch
without root permissions. It contains information about graphic cards (dedicated ATI Radeon and integrated Intel HD3000).
I wrote a simple script displaying infomation I need, but it works only with root privileges. I already tried changing file & folder permissions, but when I restart my computer, the problem remains. Is it possible to permanently change that file permissions or owner?
© Super User or respective owner