les*_*ana 12
When you remove the password from your keyrings, gnome keyring manager will save the files as clear text. You can edit those files with a text editor and copy the keys around. Set a password to have the keyring files encrypted again.
I suggest you backup your keyring files before doing this.
I assume you have two keyrings like this:

密钥环文件如下所示:
$ cd ~/.local/share/keyrings
$ file foo.keyring bar.keyring
foo.keyring: GNOME keyring, major version 0, minor version 0, crypto type 0 (AEL), hash type 0 (MD5), name "foo", last modified Thu Jan 1 01:00:00 1970, created Thu Jan 1 01:00:00 1970, not locked if idle, hash iterations 1087, salt 10888099772058093604, 1 item(s)
bar.keyring: GNOME keyring, major version 0, minor version 0, crypto type 0 (AEL), hash type 0 (MD5), name "bar", last modified Thu Jan 1 01:00:00 1970, created Thu Jan 1 01:00:00 1970, not locked if idle, hash iterations 1749, salt 12972167437702069911, 1 item(s)
Run Code Online (Sandbox Code Playgroud)
Remove the password from the two keyrings. To remove the password you have to change the password (right click > change password), enter the old password and leave the new password blank. A dialog will prompt you to verify that you want to store your passwords unencrypted.
现在你的文件应该是这样的:
$ file foo.keyring bar.keyring
foo.keyring: ASCII text
bar.keyring: ASCII text
$ cat foo.keyring
[keyring]
display-name=foo
ctime=0
mtime=0
lock-on-idle=false
lock-after=false
[1]
item-type=0
display-name=key1
secret=pass1
mtime=1311897928
ctime=0
$ cat bar.keyring
[keyring]
display-name=bar
ctime=0
mtime=0
lock-on-idle=false
lock-after=false
[1]
item-type=0
display-name=key2
secret=pass2
mtime=1311900380
ctime=0
Run Code Online (Sandbox Code Playgroud)
使用您喜欢的文本编辑器编辑文件。确保更改部分编号,使其连续且不重叠。
$ cat foo.keyring
[keyring]
display-name=foo
ctime=0
mtime=0
lock-on-idle=false
lock-after=false
[1]
item-type=0
display-name=key1
secret=pass1
mtime=1311897928
ctime=0
[2]
item-type=0
display-name=key2
secret=pass2
mtime=1311900380
ctime=0
Run Code Online (Sandbox Code Playgroud)
回到图形密钥环管理器。锁定,然后解锁钥匙圈以使更改生效(右键单击 > 锁定,右键单击 > 解锁)。或者,您可以关闭并重新打开密钥环管理器。您现在应该看到您在一个钥匙圈中移动的所有钥匙。

您现在可以设置密码,密钥环文件将再次加密。
| 归档时间: |
|
| 查看次数: |
2395 次 |
| 最近记录: |