LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Keyrings... what's in ~/.local/share/keyrings/* ? (https://www.linuxquestions.org/questions/linux-security-4/keyrings-whats-in-%7E-local-share-keyrings-%2A-4175652526/)

lostinxlation 04-21-2019 01:29 PM

Keyrings... what's in ~/.local/share/keyrings/* ?
 
Hi,
Could anyone tell me what ~/.local/share/keyrings/{login.keyring, user.keyring} contains ?
Do they have the keyring password, or credentials to websites for auto-login or something else ?

I'm not comfortable to keep the credentials in the system even if they are encrypted and trying to get rid of them as well as disabling the auto-login feature.

Would appreciate your inputs.

pan64 04-22-2019 03:26 AM

I don't really understand what do you want to try.
Actually you can rename those files (directories) and check what will happen (what will not work any more) and you will definitely see.

scasey 04-22-2019 09:51 AM

What's in the files? On my desktop:
Code:

$ more  .local/share/keyrings/*
::::::::::::::
.local/share/keyrings/login.keyring
::::::::::::::
GnomeKeyring


::::::::::::::
.local/share/keyrings/user.keystore
::::::::::::::
Gnome Keyring Store 2

...so, nothing...

verndog 04-22-2019 12:06 PM

I use autologin. With user login I don't think much is displayed in keyring. But when I install Chrome, all the sites I visit and a log of detail is recorded. I use to be able to add: --password-store=basic to google-chrome.desktop and I wouldn't be bothered with keyring. I still can somewhat, but not on Ubuntu's favorites. I deal with it another way.

lostinxlation 04-22-2019 05:00 PM

Basically, I want to delete files which contain credentials used for auto-login(and permanently disable auto-login). I thought those files under ~/.local/share/keyrings might be the ones, but since I wasn't sure, I asked this question.

The files there in my system have some binary data in them.

if you know where the auto-login credentials are stored, please let me know.

hydrurga 04-22-2019 05:14 PM

Which distro and version are you running?

You do realise that your login credentials are the same that you use (on systems that use sudo) to sudo to root? I imagine that the display manager takes the credentials from /etc/shadow - by all means turn off auto login, but don't delete your credentials.

lostinxlation 04-22-2019 09:04 PM

Quote:

Originally Posted by hydrurga (Post 5987566)
Which distro and version are you running?

You do realise that your login credentials are the same that you use (on systems that use sudo) to sudo to root? I imagine that the display manager takes the credentials from /etc/shadow - by all means turn off auto login, but don't delete your credentials.

I'm running Debian 9.8.

There is a good chance that I completely misunderstand autologin via keyring. Quickly reading some descriptions about keyring, I somehow came to my understanding that the keyring has credentials for websites such as Google account or some other websites and that lead me to think there must be a file which keeps the autologin (encrypted) credentials in it. Isn't it correct ?

/etc/shadow or /etc/passwd contains credentials to log into the system(linux). Or does it have credentials to auto-login to websites too ?

pan64 04-23-2019 12:26 AM

/etc/password does not contain log info for websites.

ondoho 04-26-2019 11:10 AM

you can simply uninstall all that keyring stuff.
might cause dependency issues with chrom/e/ium iirc.

and don't tranlate my light dismissal of keyrings to other, crucial packages.

and no, autologin is a different thing and you do not want to mess around in /etc.

understanding all this isn't easy (i don't fully understand it either) - maybe you should do some web searches and just learn.


All times are GMT -5. The time now is 01:28 AM.