Problem using secret-tool as root
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-
secret-tool: Error calling StartServiceByName for org.freedesktop
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.
gnome-keyring-
gnome-keyring-
Thank you for your bug report, that request of working under sudo should be sent upstream on https:/ /gitlab. gnome.org/ GNOME/libsecret /issues