You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the permissions on our device attribute files in sysfs are 0664 (rw-rw-r--), and root is both the owner and the group for these files. This is fine right now, as we are running everything as root (which in and of itself is actually not fine...). When we start using a user that isn't root, we will no longer be able to write those files. Changing the permissions to 0666 would fix that, and I don't believe doing so will have any major drawbacks/implications, even if we end up creating a different interface.
The text was updated successfully, but these errors were encountered:
Just a note on this. That can't be done as it is not allowed. Attempting to do so literally makes the device drivers unable to compile to intentionally prevent those permissions.
Just a note on this. That can't be done as it is not allowed. Attempting to do so literally makes the device drivers unable to compile to intentionally prevent those permissions.
That makes sense. They did the right thing.
It seems like giving sudo permissions for specific files is a good approach. If we can set the group to something other than root, we could avoid messing with the sudoers file, but I'd be surprised if we could automatically change the group ownership.
Currently, the permissions on our device attribute files in sysfs are 0664 (rw-rw-r--), and root is both the owner and the group for these files. This is fine right now, as we are running everything as root (which in and of itself is actually not fine...). When we start using a user that isn't root, we will no longer be able to write those files. Changing the permissions to 0666 would fix that, and I don't believe doing so will have any major drawbacks/implications, even if we end up creating a different interface.
The text was updated successfully, but these errors were encountered: