Results 1 to 3 of 3

Thread: How to unlock keychain using pamusb

  1. #1
    Join Date
    Jun 2006
    Location
    Brooklyn NY
    Beans
    9
    Distro
    Ubuntu 6.10 Edgy

    How to unlock keychain using pamusb

    I have followed the tutorial to use an sd card as login credential using pamusb here:
    http://ubuntuforums.org/archive/index.php/t-17571.html

    Login authentication works, screensaver locks when the card is removed and unlocks when I reinsert it... But every time I login, NetworkManager wants to access the keyring and asks for a password to unlock it.

    My question... How can pamusb unlock the keyring upon login?

    I have looked around for an answer but all I have found are people with the same question and no answer.

    Asus EEEpc 1000HA
    Ubuntu 9.04

  2. #2
    Join Date
    Jan 2010
    Location
    England
    Beans
    78
    Distro
    Ubuntu 11.04 Natty Narwhal

    Smile Re: How to unlock keychain using pamusb

    3 years later I have an answer for you

    Of course, this depends on how security conscious you are, as it involves leaving the password for your keyring as plaintext in a script...

    1. Get the python-gnomekeyring package
    2. Edit the script below with the correct names and passwords for your keyring(s)
    3. Save it in a logical place and chmod it to 700 (i.e. `chmod 700 <scriptname>`)
    4. Add the script to your startup applications

    Script:
    Code:
    #!/usr/bin/env python2
    
    import pygtk
    import gnomekeyring
    import sys
    
    gnomekeyring.unlock_sync('login','<password>')
    gnomekeyring.unlock_sync('<keyring>','<password>') # Repeat for each keyring you need unlocked automatically
    
    sys.exit(0)
    Shiny Lenovo B560, bought with 50% discount from the Linux Foundation, Ubuntu 11.04 Natty

    If it can go wrong, it will... Multiple times.

  3. #3
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How to unlock keychain using pamusb

    Old thread closed.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •