You are not logged in.

#1 2010-10-25 17:21:12

Gooru
Member
From: Poland
Registered: 2010-08-25
Posts: 53

[SOLVED] Permission for a file is changing after reboot

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

#2 2010-10-25 17:24:49

Halcyon22
Member
Registered: 2010-07-30
Posts: 33

Re: [SOLVED] Permission for a file is changing after reboot

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

#3 2010-10-25 17:42:03

Gooru
Member
From: Poland
Registered: 2010-08-25
Posts: 53

Re: [SOLVED] Permission for a file is changing after reboot

Thanks a lot, I finally managed to do it big_smile

Offline

#4 2010-10-25 18:32:09

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Re: [SOLVED] Permission for a file is changing after reboot

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 tongue you can do it how you like!

Offline

#5 2010-10-28 20:37:06

Gooru
Member
From: Poland
Registered: 2010-08-25
Posts: 53

Re: [SOLVED] Permission for a file is changing after reboot

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

#6 2010-10-28 20:39:51

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [SOLVED] Permission for a file is changing after reboot

Files in /proc are "virtual" in that they are recreated during every system boot depending on what hardware is found.

Offline

Board footer

Powered by FluxBB