When I change ownership of /sys/class/backlight/intel_backlight/brightness
with chown
its ownership changes again to root after system startup.
-
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})– RinzwindJul 5, 2014 at 19:26
-
Please read this: askubuntu.com/a/341947/15811– RinzwindJul 5, 2014 at 19:29
Add a comment
|
1 Answer
Use chmod
e.g. to change to executable, do chmod +x /path/to/file.extension
See this answer for a guide on chmod
.
-
As stated in the questio: And when he reboots it is set back to root (as it should)...– RinzwindJul 5, 2014 at 19:27
-
@Rinzwind, does
chmod
still let it revert? I thought that it was because he was usingchown
– TimJul 5, 2014 at 19:28 -
2please 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.)"– RinzwindJul 5, 2014 at 19:29
-