Elektrine lite

← Feed

@starsider@valenciapa.ws

Post #2227766

2026-04-21 14:48 UTC

@Alkaris@meow.social What do you need it for, specifically? In KDE for example, to browse files there's already an "open as administrator" context menu option when a folder is not owned by the user, and all apps I know that require admin permissions (e.g. KDE partition manager, kdiskmark for some partitions, rustdesk when enabling or disabling the service, steam when setting up VR the first time, etc.) pops up a password dialog for admin access. For some other things (like access to a serial port), people shouldn't use sudo, but should add themselves to the appropriate group (uucp in the case of serial ports). That should probably be a feature of applications like Arduino IDE (to ask for admin access to add yourself to the group). Just running stuff as root can be problematic, not just because of security issues, but also because of littering the home directory with files that the user can't read.

Replies (1)

  • @Alkaris@meow.social 2026-04-21 15:49

    @starsider@valenciapa.ws No that's not the same thing. There's no context menu for running something with sudo from the context menu, what you're talking about is what file mangers already give you that for opening files and folders, but not for running applications that require sudo. Applications like KDE Partition Manager asks you for a password on opening it by default because it executes pkexec when launching the application, but this doesn't apply to other applications that require elevated permissions in order to run. But not all applications that require sudo use this when they require it.

    Open ##2227767