When I change ownership of /sys/class/backlight/intel_backlight/brightness
with chown
its ownership changes again to root after system startup.
Asked
Active
Viewed 1,754 times
0
-
4Hmmm 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 Answers
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 usingchown
– Tim Jul 05 '14 at 19:28 -
2please 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
-