Bug 471301 - Incorrect detection of permission group (operator vs cdrom)
Summary: Incorrect detection of permission group (operator vs cdrom)
Status: REPORTED
Alias: None
Product: k3b
Classification: Applications
Component: GUI/Usability (show other bugs)
Version: 22.12.3
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: k3b developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-21 17:33 UTC by Fab Stz
Modified: 2023-06-21 17:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
k3b settings and /etc/group (121.92 KB, image/png)
2023-06-21 17:33 UTC, Fab Stz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fab Stz 2023-06-21 17:33:59 UTC
Created attachment 159820 [details]
k3b settings and /etc/group

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open k3b
2. Got to  Configuration/configure k3b/Programmes/Access permissions

OBSERVED RESULT
On Debian instead of suggesting to set the permissions to root.cdrom, it wants to set it to root.operator which is not really correct. 


EXPECTED RESULT
The group that has permissions to access the cdrom device is called "cdrom" and not "operator".
So k3b should set the permission to root.cdrom.

I check in the source code.
IIUC https://invent.kde.org/multimedia/k3b/-/blob/release/22.12/src/option/k3bexternalbinwidget.cpp#L151
if in /etc/group there is one or more of cdrom, operator or optical, it will actually use the last one of /etc/group as the correct value.
I think it would be better in that case to get all matches from /etc/group and then use the group according to a prefered order which would be  "cdrom > optical > operator" (ie. if there are both cdrom & operator, it should take cdrom and not operator).

Attached there is a screenshot with the k3b window as well as the content of /etc/group which show that there is both cdrom & operator in the file.




SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Debian 12
KDE Plasma Version: 5.27.5-2
KDE Frameworks Version: 
Qt Version: 5.15.8