仪器社区

ubuntu如何不用每次开机时都输入密钥环解锁密码

edgtid1433 2016-10-13
评论
全部评论
UI大智慧
对于我这样的懒人来说,实在是太麻烦了。
QUOTE:ngolian ngolian is offline
5 Cups of Ubuntu
Join Date: Apr 2005Beans: 16
Lightbulb Re: Howto: Get Network Manager to stop asking you for your keyring password (pam_keyr
Several people have asked how to get this to work with autologin. Making the same change to /etc/pam.d/gdm-autologin as to /etc/pam.d/gdm described at the start of the thread sort of works, but you do get asked for a password at login, so it isn't really automatic any more.
Instead I wrote this script:#!/bin/sh
exec echo -n "MyKeyringPassword" | /usr/lib/libpam-keyring/pam-keyring-tool -u -s
and added it to the session Startup Programs. Obviously it relies on being run after gnome-keyring-daemon starts but before nm-applet, but that seems to happen automagically for me.
So I don't need to enter a password at all any more! I know, I know, very lax security. But people who don't use gdm autologin might also find this method useful, because it means you can use separate passwords for logging in and for the keyring. And the script could probably be refined so as not to reveal the password in plain text.
You still need the libpam-keyring package for pam-keyring-tool. And I had to look at the source to find out how to use it. There's probably a way of doing the same thing using the dbus interface so you don't need libpam-keyring.
按照上面的方法。我测试成功了。我的版本是7.04。
具体步骤如下:
1。打开终端,输入sudo apt-get install libpam-keyring
2。新建一个脚本,内容如下:#!/bin/sh
exec echo -n "MyKeyringPassword" | /usr/lib/libpam-keyring/pam-keyring-tool -u -s
其中MyKeyringPassword是你的密钥环解锁的密码。
3。给刚才的文件加上可执行权限。
4。在系统-shou选项-会话里,添加刚才的脚本为开机自启动。
19 0 2016-10-14 0条评论 回复
您可能感兴趣的社区主题
加载中...
发布 评论