this post was submitted on 21 Nov 2023
33 points (92.3% liked)

Linux

48182 readers
1292 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I understand they are important and are what makes linux relatively secure compared to windows.

However, when I boot my PC, I don't want to spend a whole minute to type my password into different promts that keep getting hidden behind other windows that are starting up. I am using Nobara KDE now, but previously when I was using Pop!_OS, none of these prompts showed up.

Currently I have 2 prompts after logging on. One for my keychain when discord autostarts, and one for flatpak when gpu-screen-recorder launches. Interestingly, discord works just fine, with auto logon, regardless of whether the keychain prompt gets canceled or filled with the password.

Any idea on how to get rid of them? I'd prefer if really only that startup prompt was gone, and it would still ask me for the password whenever it launches any other way.

top 19 comments
sorted by: hot top controversial new old
[–] interceder270@lemmy.world 13 points 1 year ago (1 children)
[–] meekah@lemmy.world 4 points 1 year ago (1 children)

that seems to be exactly what im looking for. thanks

[–] Botzo@lemmy.world 9 points 1 year ago

To hazard a guess, this is a gnome keyring asking to be unlocked after login?

Caveat: it has been a few years since I was on gnome.

You can tie it to the login with the gnome keying PAM module.

[–] TonyToniToneOfficial@lemmy.ml 3 points 1 year ago

Subbed because I'd like to know, too

[–] Pantherina@feddit.de 3 points 1 year ago* (last edited 1 year ago) (1 children)

Comments until now where not really helpful.

I had a similar problem, but its not clear what password prompts you are using, as I dont use these software.

But I guess they have different causes.

You have saved Wifi networks and all just working and will not have borked your Kwallet. But for completion, for auto-unlock kwallet needs to

  • use blowfish
  • use an empty or your login password
  • the wallet needs to be set as default in the systemsettings page (really confusing as the rest is done in the apps window)

But discord may use Gnome keyring, and I think there is no integration to autounlock that on KDE which sucks, as Spotube (I think) and some other apps use it too. You may want to disable keystore if that doesnt log you out.


The other thing with gpu-screen-recorder will probably be a polkit prompt because the app wants access to... you know GPU stuff.

I made a script to fix these prompts by automatically allowing certain polkit actions for users in the wheel group when logged in and not over ssh. Thats basic polkit config. You can add more for things like updating the system, opening kde-partitionmanager, opening virt-manager (this is fixed by adding the user to the libvirt group), mounting and unlocking LUKS drives.

https://github.com/trytomakeyouprivate/polkit-helper

You get the name of the process (hopefully not just "sudo do that" by clicking on "details" in the KDE polkit prompt


So yeah so much without any actual description of the problem or just screenshots of the dialogs and a list of the apps.

For easy debug info targeted towards KDE bugs, i created sysinfo, similar to KDEs kinfo but better and with the option to append app names, package manager query etc.

https://github.com/trytomakeyouprivate/KDE-sysinfo-CLI

[–] meekah@lemmy.world 1 points 1 year ago

that polkit helper looks really cool, thank you!

[–] ctr1@fl0w.cc 2 points 1 year ago (1 children)

Personally, I've relied on an OnlyKey for a few years (with backups and an extra fallback device) and haven't needed to type passwords since. This doesn't help with the number of prompts, but it does make them easier to dismiss.

I do use autologin, but I don't use a system wallet (only KeePassXC, which I do need to unlock manually). Autologin with system wallets can be tricky, but I've had some luck setting it up in the past. You might want to check out this wiki for PAM configuration.

[–] UnRelatedBurner@sh.itjust.works 0 points 1 year ago (2 children)

may I ask how do you unlock it manually? Like what do you have to type in, specifically? /s

[–] MyNameIsRichard@lemmy.ml 2 points 1 year ago* (last edited 1 year ago) (1 children)

****************************

[–] infinitevalence@discuss.online 1 points 1 year ago* (last edited 1 year ago) (1 children)

That's so cool! I did not know that Lemmy would automatically put in stars when you type a password!

****************

Damn that's cool!

[–] 4am@lemm.ee 3 points 1 year ago (1 children)
[–] 4am@lemm.ee 3 points 1 year ago (1 children)

Hey wait why does it still show for me

*******

Just shows stars on my screen.

[–] ctr1@fl0w.cc 1 points 1 year ago

Lol. I press a button on the device (which I unlocked with a pin before boot), but it would be nice to have the DB unlock automatically

[–] squarm@lemm.ee 1 points 1 year ago* (last edited 1 year ago)

Idk about the gpu screen recorder but for the keychain for Discord if you disable the KDE wallet subsystem (which is just in the kde system settings) it should stop asking. it’s never caused me an issue and made the discord popup go away. its a dirty solution but its what worked for me.

[–] dec05eba@lemmy.world 1 points 11 months ago (1 children)

The documentation (README) of gpu screen recorder mentions how to remove the password prompt: https://git.dec05eba.com/gpu-screen-recorder/about/ (you have to install it from source or from aur). Right now there is no good way to do that with the flatpak (adding exception for it in polkit wont work that nicely because of how it works).

[–] meekah@lemmy.world 1 points 11 months ago* (last edited 11 months ago)

thanks for the tip! I haven't gotten around to playing with polkit yet but I'll try to see if I can make that work. I don't think I've ever installed anything from the aur. probably a good time to try it out ^^

[–] Ozzy@lemmy.ml 0 points 1 year ago

I really want to know this too, I've been looking for a fix for this but no luck. Waiting to hear replies