[systemd-devel] How to use systemd-gnome-ask-password-agent?

Ilya Basin basinilya at gmail.com
Wed Jan 20 13:05:40 PST 2016


Both commands you mentioned cause a dialog asking for root password.

On Tue, Jan 19, 2016 at 5:04 PM, Mantas Mikulėnas <grawity at gmail.com> wrote:

> On Fri, Jan 15, 2016 at 8:31 PM, Ilya Basin <basinilya at gmail.com> wrote:
>
>> Hi.
>> I want a graphical password prompt when an entry in /etc/crypttab is
>> activated.
>> I have Archlinux/Xfce
>>
>> Additionally installed xfce4-notifyd.
>>
>> This works:
>>
>>     $ sudo systemd-gnome-ask-password-agent
>>
>> I think I can add this to ~/.xprofile, but I guess that's not how it was
>> intended to work.
>>
>
> Looks almost normal – that's also how other 'agents' like
> polkit-gnome-agent or nm-applet work. (They belong to different daemons but
> essentially do the same task.) Although, I suppose, the agent
> should autostart via /etc/xdg/autostart or ~/.config/autostart (Xfce's
> session settings), but that doesn't make any difference in the end.
>
> The only difference is that you *really* shouldn't need `sudo` here. The
> agent itself will use polkit to send responses to systemd. Maybe your
> display manager doesn't properly set up a logind session? Does `pkexec`
> work? Does `pkcheck -p $$ -a org.freedesktop.systemd1.reply-password -u`
> work?
>
> (Though I'm not entirely sure what restrictions the polkit side is
> supposed to have. Is asked for admin password normal here, or should it
> automatically allow replies from console sessions?)
>
> --
> Mantas Mikulėnas <grawity at gmail.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20160121/37f4b80a/attachment.html>


More information about the systemd-devel mailing list