0

When I change ownership of /sys/class/backlight/intel_backlight/brightness with chown its ownership changes again to root after system startup.

2
  • 4
    Hmmm you are missing a basic concept of Linux: "/sys/" is a virtual system that gets rebuild on boot. You can not change it. Besides that: you should not change files in "/sys/" in the 1st place. You edit these files as "root" (sudo su, password and then vi {file})
    – Rinzwind
    Jul 5, 2014 at 19:26
  • Please read this: askubuntu.com/a/341947/15811
    – Rinzwind
    Jul 5, 2014 at 19:29

1 Answer 1

0

Use chmod

e.g. to change to executable, do chmod +x /path/to/file.extension

See this answer for a guide on chmod.

4
  • As stated in the questio: And when he reboots it is set back to root (as it should)...
    – Rinzwind
    Jul 5, 2014 at 19:27
  • @Rinzwind, does chmod still let it revert? I thought that it was because he was using chown
    – Tim
    Jul 5, 2014 at 19:28
  • 2
    please read this: askubuntu.com/a/341947/15811 /sys and /proc are NOT actual directories. "Entries in /sys are created by the kernel and by drivers; you cannot just create them from the command-line. (As stated above, you can edit some as root, but you cannot generally make new ones from userspace except by loading kernel modules or otherwise installing drivers or modifying the kernel.)"
    – Rinzwind
    Jul 5, 2014 at 19:29
  • @Rinzwind You learn something new every day! Thankyou!
    – Tim
    Jul 5, 2014 at 19:32

Not the answer you're looking for? Browse other questions tagged .