You are not logged in.
I know it may seem to you like a silly question, but it's a terrible problem for me. I tried to change permission for a file using chmod 660 and it changed of course ( I did it as a root ), but after reboot it resumed to the previous state. It's rather critical file form /proc/acpi/video/... and I need it for brightness manipulation. It's a file with a direct access to my hardware, so I think there's somewhere protection mechanism in Arch and I don't know what should I change.
Thanks in advance
Last edited by Gooru (2010-10-25 17:43:03)
Offline
add the command to /etc/rc.local this file is ran at every boot
Last edited by Halcyon22 (2010-10-25 17:25:32)
Offline
Thanks a lot, I finally managed to do it
Offline
Although this works, surely changing the permissions on every boot is a little backwards.
As far as I'm aware it's permissions are set like that for a reason - it's a hardware control and as such should only be touched with privileged permissions (root). The 'real' way to do this would probably be to use sudo and set up the sudoers file such that you don't need to use a password as a regular user.
That's just my two cents though... and if I'm honest, it's just me being really pedantic you can do it how you like!
Offline
Yup, that would be more elegant, but to be honest I tried this solution and using sudo didn't work for me. I don't know why, but sudo permission is not enough to change such critical files. It's strange.
Offline
Files in /proc are "virtual" in that they are recreated during every system boot depending on what hardware is found.
Offline