The officially official Devuan Forum!

You are not logged in.

#1 2021-10-04 07:36:04

gour
Member
Registered: 2021-02-12
Posts: 10  

secret-tool & gnome-keyring (Cannot spawn a message bus when setuid)

Hello,

just migrated my desktop machine to devuan/ceres after short usage of mylinux-21 (migrated from debian/sid) and I'm very pleased with the work done by the Devuan devs hoping to stick with it for a long time!

There is one problem I'm experiencing when msmtp tries to access password stored by libsecret from the gnome-keyring...

Hee is the output I get when trying to test email with msmtp:

$ echo "hello there" | msmtp -v -a default some-email@gmail.com
ignoring system configuration file /etc/msmtprc: No such file or directory
loaded user configuration file /home/user/.msmtprc
secret-tool: Cannot spawn a message bus when setuid
msmtp: cannot read output of 'secret-tool lookup user someuser'

However, just retrieving passwd from the store does work:

$ secret-tool lookup user someuser
paswdxyzsfsdfd

The bug is reported here and apparently fixed in version gnome-keyring/40.0-3, but there is problem due to missing dbususer-session package - see the comment, so wonder what is possible workaround besides using some other password-storing/retrieving mechanism?

Let me  add that the same setup was working under MXlinux/sysvinit...

Offline

#2 2021-10-05 09:24:33

xinomilo
Unknown
Registered: 2017-07-02
Posts: 315  

Re: secret-tool & gnome-keyring (Cannot spawn a message bus when setuid)

even though i use clear text password in /etc/msmtprc, i did try ~/.msmtprc with secret-tools and get the same error message..
reading the bug report, this seems pretty messed up...
debian dbus-user-session depends on systemd, not sure if it's coming to Devuan anytime soon (?).  MXlinux has systemd installed, so i guess that's the reason it's working there. it's probably working on antiX too, haven't tried it, but dbus-user-session is in antix repos without systemd dependency (with consolekit, not elogind).

so i got no workaround for devuan, i'd only suggest the 2nd auth method (GPG). probably better than figuring out what wrong with dbus, glib, gnome-keyring, libsecret, etc...

Offline

#3 2021-10-05 12:14:48

gour
Member
Registered: 2021-02-12
Posts: 10  

Re: secret-tool & gnome-keyring (Cannot spawn a message bus when setuid)

xinomilo wrote:

even though i use clear text password in /etc/msmtprc, i did try ~/.msmtprc with secret-tools and get the same error message..

Nice to not be alone. :-)

MXlinux has systemd installed, so i guess that's the reason it's working there. it's probably working on antiX too, haven't tried it, but dbus-user-session is in antix repos without systemd dependency (with consolekit, not elogind).

I'm not sure whether systemd was installed on MXlinux...

so i got no workaround for devuan, i'd only suggest the 2nd auth method (GPG). probably better than figuring out what wrong with dbus, glib, gnome-keyring, libsecret, etc...

Thank you for taking time...yes, I'll probably use pass...

Offline

#4 2021-10-05 16:43:28

golinux
Administrator
Registered: 2016-11-25
Posts: 3,316  

Re: secret-tool & gnome-keyring (Cannot spawn a message bus when setuid)

MXlinux has systemd installed, so i guess that's the reason it's working there. it's probably working on antiX too, haven't tried it, but dbus-user-session is in antix repos without systemd dependency (with consolekit, not elogind).

I'm not sure whether systemd was installed on MXlinux...

It is available for installation.  Or activation might be a better word:

https://mxlinux.org/wiki/system/systemd/

Offline

#5 2021-10-06 07:12:03

gour
Member
Registered: 2021-02-12
Posts: 10  

Re: secret-tool & gnome-keyring (Cannot spawn a message bus when setuid)

golinux wrote:

MXlinux has systemd installed, so i guess that's the reason it's working there.

It could be, although I didn't enable it.

Anyway, had some other issues - not being able to permanently set default sound device, Viber was restarting setup procedure after every reboot etc., so for the time being, I reverted back to Debian/Sid...

Offline

#6 2021-10-06 07:27:29

golinux
Administrator
Registered: 2016-11-25
Posts: 3,316  

Re: secret-tool & gnome-keyring (Cannot spawn a message bus when setuid)

gour . . . I did not write that.

My response is here a few posts up.

Offline

Board footer