this post was submitted on 20 Jul 2026
36 points (95.0% liked)

Linux

66561 readers
262 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
36
Learning udev (www.youtube.com)
submitted 2 days ago* (last edited 2 days ago) by akunohana@piefed.blahaj.zone to c/linux@lemmy.ml
 

I am reading up on udev, about its purpose, history and implementation. I have read the Wikipedia article and next I'm going to read the man pages. Meanwhile, I watched this video (Invidious link here) to see an example of what udev rules can do. I just have some questions regarding this video specifically:

  1. ~~Following the principle of least privilege,~~ shouldn't I create a separate group - usb or whatever - rather than using wheel this way, which gives it double roles?
  2. 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?
top 4 comments
sorted by: hot top controversial new old
[–] GaumBeist@lemmy.ml 2 points 1 day ago (1 children)
  1. 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

  2. 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

[–] akunohana@piefed.blahaj.zone 1 points 1 day ago

Thanks!

  1. I'm going to interpret this as such: it doesn't really matter, since - on my system - creating new groups require root privileges, requiring a superuser or a user part of wheel anyway. This way, I can create a group with name that reflects its purpose, which in turn gives readability to the udev rule file.

  2. This makes sense. Thanks for the fstab example/reminder!

[–] eldavi@lemmy.ml 2 points 1 day ago

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

When you finished I wouldn't mind a Zusammenfassung.