0

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

Braiam
  • 67,791
  • 32
  • 179
  • 269
user68480
  • 41
  • 1
  • 1
  • 4
  • 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 05 '14 at 19:26
  • Please read this: http://askubuntu.com/a/341947/15811 – Rinzwind Jul 05 '14 at 19:29

1 Answers1

0

Use chmod

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

See this answer for a guide on chmod.

Tim
  • 32,861
  • 27
  • 118
  • 178
  • As stated in the questio: And when he reboots it is set back to root (as it should)... – Rinzwind Jul 05 '14 at 19:27
  • @Rinzwind, does chmod still let it revert? I thought that it was because he was using chown – Tim Jul 05 '14 at 19:28
  • 2
    please read this: http://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 05 '14 at 19:29
  • @Rinzwind You learn something new every day! Thankyou! – Tim Jul 05 '14 at 19:32