Hi!

I'm really just throwing this out there because it strikes me as a bit
odd. Looking at group permissions, I see that the `sd*` devices belong
to the `disk` group (and that group has read and write access):

% ls -l /dev/sd*
brw-rw---- 1 root disk 8,  0 jul 20 08:22 /dev/sda
brw-rw---- 1 root disk 8,  1 jul 20 08:22 /dev/sda1
brw-rw---- 1 root disk 8, 16 jul 20 08:22 /dev/sdb
brw-rw---- 1 root disk 8, 17 jul 20 08:22 /dev/sdb1

But NVMe drives don't follow this pattern:

% ls -l /dev/nvme*
crw------- 1 root root 235, 0 jul 20 08:22 /dev/nvme0     <- Why?
brw-rw---- 1 root disk 259, 0 jul 20 08:22 /dev/nvme0n1
brw-rw---- 1 root disk 259, 3 jul 20 08:22 /dev/nvme0n1p1
crw------- 1 root root 235, 1 jul 20 08:22 /dev/nvme1     <- Why?
brw-rw---- 1 root disk 259, 1 jul 20 08:22 /dev/nvme1n1
brw-rw---- 1 root disk 259, 2 jul 20 08:22 /dev/nvme1n1p1

Is there a reason why this is the case? From my perspective, it would
make sense for all disks to belong to the `disk` group, not just the
ones that aren't NVMe.

Mind you, there might be something I'm missing. But of course, if I
want to get information about those disks, my only options are to
either set up my own udev rule or become root.

Greetings.

-- 
Óscar García Amor | ogarcia at moire.org | http://ogarcia.me

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to