Problem using secret-tool as root

Bug #1805241 reported by pickadi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libsecret (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Ubuntu release: 18.10 x64
Package version: libsecret-tools 0.18.6-3

Command example: sudo secret-tool store --label='password' key value (similar issues can be obtained with secret-tool lookup / clear / search)

Expected behavior: the same behavior as a non-privileged user, that is: no output in stdout nor syslog, secret-tool simply asks for the password and stores it.

Observed behavior: After a few seconds of waiting, secret-tool crashes with the following output in stdout:

(secret-tool:3394): GLib-GObject-CRITICAL **: 15:45:12.811: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
secret-tool: Error calling StartServiceByName for org.freedesktop.secrets: Timeout was reached

and the following output in /var/log/syslog:

dbus-daemon[4246]: [session uid=0 pid=4244] AppArmor D-Bus mediation is enabled
dbus-daemon[4246]: [session uid=0 pid=4244] Activating service name='org.freedesktop.secrets' requested by ':1.0' (uid=0 pid=4240 comm="secret-tool store --label=password key value " label="unconfined")
gnome-keyring-d[4249]: couldn't create socket directory: /home/user/.cache/keyring-XTN8SZ: Permission denied
gnome-keyring-d[4249]: couldn't bind to control socket: /home/user/.cache/keyring-XTN8SZ/control: Permission denied

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, that request of working under sudo should be sent upstream on https://gitlab.gnome.org/GNOME/libsecret/issues

Changed in libsecret (Ubuntu):
importance: Undecided → Low
Revision history for this message
pickadi (pickadi) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks!

Changed in libsecret (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.