Elektrine lite

← Feed

@akunohana@piefed.blahaj.zone

Post #3967749

2026-07-20 19:31 UTC

Learning udev I am reading up on udev, about its purpose, history an implementation. I have read the Wikipedia article and next I’m going to read the man pages. Meanwhile, I watched this video to see what an example of what udev rules can do. I just have some questions regarding this video specifically: Following the principle of least privilege, shouldn’t I create a separate group - usb or whatever - rather than using wheel this way? Why don’t I just chmod and chown the /dev file(s) in question, if udev already provides persistent device naming (=the raw device won’t have a different designation at next disconnect-connect)? Or does the designation change perhaps?

Replies (3)

  • @eldavi@lemmy.ml 2026-07-21 15:47

    you’re going to learn it better than 90% of people out there if you do all of this. lol

    Open ##3989458

  • When you finished I wouldn’t mind a Zusammenfassung.

    Open ##3990488

  • @GaumBeist@lemmy.ml 2026-07-21 17:01

    Yes… in my opinion. The real answer is that it depends on the intended use of the system and the users’ needs. It’s as legitimate to treat wheel as a catchall permissions group as it is to go around specifying permissions for specific users in your sudoers and udev rules From my understanding, the kernel tends to reuse the same names when attaching devices, but it’s not required to do so by the specs (i.e. there may be cases where the /dev file name changes depending on what you have plugged in). Hence why the common advice is to not specify /dev files in your fstab, and why people use udev rules instead of chmod and chown-ing the /dev files

    Open ##3990936