0

#Refer: How to enter the Default Keyring password via the command line? - Ask Ubuntu

I am asking this question here as I am not using Ubuntu and also the solution mentioned there doesn't work in LinuxMint 20.3


$ whoami
nikhil
pip install keyring

I created an executable python script as follows:

import keyring
import getpass

keyring.set_password('login', 'nikhil', getpass.getpass('Password: '));

On executing the script and entering the password, the Login keyring still remains locked. Any suggestions?

Reference

  1. getpass — Portable password input — Python 3.10.2 documentation
  2. keyring · PyPI

0

You must log in to answer this question.

Browse other questions tagged .