Results 1 to 7 of 7

Thread: How to enter the Default Keyring password via the command line?

  1. #1
    Join Date
    Apr 2007
    Beans
    23

    How to enter the Default Keyring password via the command line?

    I need to VNC into my desktop remotely however I need to unlock the keyring remotely from the commandline to do this.

    I have tried the python solution posted on this thread

    http://askubuntu.com/questions/18927...e-command-line

    and it gives me the following error:

    Traceback (most recent call last):
    File "/usr/bin/unlock-keyring", line 6, in <module>
    gnomekeyring.unlock_sync(None, getpass.getpass('Password: '));
    gnomekeyring.IOError

    The other solution does not tell me what command I need to unlock it the keyring.

    I am running Ubuntu 10.04.4 LTS

  2. #2
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: How to enter the Default Keyring password via the command line?

    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  3. #3
    Join Date
    Apr 2007
    Beans
    23

    Re: How to enter the Default Keyring password via the command line?

    Thanks matt for the link. I added the following lines
    auth optional pam_gnome_keyring.so
    session optional pam_gnome_keyring.so auto_start

    to /etc/pam.d/login as instructed but still cant use VNC. I am not at the machine at the moment so I only have ssh access.

    The machine is set to auto login and I have added
    echo -n "mypassword" | gnome-keyring-daemon --login
    with mypassword being replaced with my keyring password

    and still not luck.

  4. #4
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: How to enter the Default Keyring password via the command line?

    Hi

    you will normally be connecting via VNC and not ssh ?

    will the target machine have gnome-keyring-daemon running before connection ?

    If gnome-keyring-daemon is not running before connection, the first thing to check is if gnome-keyring-daemon is started when you login.

    If it starts it running but does unlock the keyring take a look in /var/log/auth.log to see if it is rejected or to see if it is even getting the password.

    post back on your investigation. bear in mind though it's 60.30am here so i may not respond right away.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  5. #5
    Join Date
    Apr 2007
    Beans
    23

    Re: How to enter the Default Keyring password via the command line?

    Hi matt,

    I normally connect using VNC client and don’t use SSH. The target machine does seem to have be running or at least there is a process running
    /usr/bin/gnome-keyring-daemon --start --components=secrets.
    In the log file this is the entry for when I try to connect via VNC client. At the machine I want to connect to there will be a popup asking the password. If I enter it once it will accept connections until I reboot and if I forget to unlock the keyring or reboot remotely I can’t connect via VNC.

    Mar 6 11:20:57 armada gnome-keyring-daemon[2264]: PROMPT INPUT:#012#012[prompt]#012title=Unlock Keyring#012primary=Enter password for keyring 'Default' to unlock#012secondary=An application wants access to the keyring 'Default', but it$

    Not related but I did find a lot of Chinese IP's trying to log in as root.

    Thanks in advance.

  6. #6
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: How to enter the Default Keyring password via the command line?

    Hi

    Not related but I did find a lot of Chinese IP's trying to log in as root.
    Hmm. Make sure your system is secure !!!!

    Use VNC with ssh or someting like tightVNC.

    Use keys if you can and make sure any passwords contain alpha numerica characters and are long.

    Lok down with iptables and other hardening techniques.

    I don't use VNC personally so i cannot suggest anything off the off, especially if pam_gnome_keyring is not working for you as that is what i would have played around with.

    I would have to read up like you have been.

    Let's see what others suggest.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  7. #7
    Join Date
    Apr 2007
    Beans
    23

    Re: How to enter the Default Keyring password via the command line?

    I think my SSH installation uses keys by default and I do use an alpha numeric password. It seems there is an pearl script that adds rules to the ip tables based on unsuccessful logins attempts found in the log files. Looks a little above my level but looks like worth trying. Thanks for the advice thus far.

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
  •