Summary: | detecting that the user isn't part of the cdrom group | ||
---|---|---|---|
Product: | [Applications] k3b | Reporter: | Francois Marier <francois> |
Component: | general | Assignee: | k3b developers <k3b> |
Status: | REPORTED --- | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Francois Marier
2007-11-04 22:09:54 UTC
I have no idea how K3b should be able to detect which group is the "CD" group. So I don't think this is feasible. How about looking up the group of the CD/DVD device and then checking that the user is part of that group? $ ls -l /dev/hdb | cut -d' ' -f4 cdrom $ groups username username : username dialout cdrom floppy audio src video plugdev users powerdev netdev And how do I know which device is the cd device? For example for me it is /dev/hda, /dev/sr0, /dev/sr1, and /dev/sr2 while on the laptop is it /dev/hdb... Doesn't K3b already detect the burning device? Or does it only get the ATAPI/SCSI address on the bus? Aha. So you mean only for write permissions? Well, that k3b already does. You get a warning in case you do not have proper permissions for a device (that could be detected). That's right. What I had in mind was a warning like: "You don't have write permissions on your 'Sony CD Recorder'. Perhaps you need to ask your system administrator to add you to the 'cdrom' group?" Well, K3b already warns about missing write permissions. I could check the group the device is in and propose to add the user to that group but there will be situations in which that is wrong, too... True. I don't think there's a single fix for all distros since they deal with these things differently. It may be worth mentioning though since on some distros that's the correct way to do things. Of course, then package maintainers can adapt the default K3b detection to suit their systems. |