https://bugs.kde.org/show_bug.cgi?id=471301

            Bug ID: 471301
           Summary: Incorrect detection of permission group (operator vs
                    cdrom)
    Classification: Applications
           Product: k3b
           Version: 22.12.3
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: GUI/Usability
          Assignee: k...@kde.org
          Reporter: fabstz...@yahoo.fr
                CC: mich...@jabster.pl, tr...@kde.org
  Target Milestone: ---

Created attachment 159820
  --> https://bugs.kde.org/attachment.cgi?id=159820&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to