Bug#830775: systemd: systemctl poweroff ask me twice for user and password.

Michael Biebl biebl at debian.org
Mon Jul 11 13:39:46 BST 2016


Am 11.07.2016 um 14:33 schrieb Pavel Kosina:
> Its ssh, putty,
> 
> dady at linuxbox:~$ systemctl poweroff
> ==== AUTHENTICATING FOR org.freedesktop.login1.set-wall-message ===
> Authentication is required to set a wall message
> Multiple identities can be used for authentication:
>  1.  ,,, (dady)
>  2.  ,,, (danca)
> Choose identity to authenticate as (1-2): 1
> Password:
> ==== AUTHENTICATION COMPLETE ===
> ==== AUTHENTICATING FOR org.freedesktop.login1.power-off ===
> Authentication is required for powering off the system.
> Multiple identities can be used for authentication:
>  1.  ,,, (dady)
>  2.  ,,, (danca)
> Choose identity to authenticate as (1-2): Failed to power off system via
> logind: Spojení bylo přílií
> Failed to start poweroff.target: Spojení bylo příliš dlouho neaktivní
> See system logs and 'systemctl status poweroff.target' for details.
> dady at linuxbox:~$
> dady at linuxbox:~$ loginctl show-session $XDG_SESSION_ID
> Id=5
> User=1000
> Name=dady
> Timestamp=Po 2016-07-11 14:30:44 CEST
> TimestampMonotonic=1861158573
> VTNr=0
> Remote=yes
> RemoteHost=192.168.1.101
> Service=sshd

Thanks for the quick reply. So this is a remote login. That explains why
you get the polkit prompt.
As you can see, the admin password is asked for two distinct things:
For setting a wall message and for the actual poweroff.
Both require admin privileges.
If you don't want to have the prompt for the wall message, use
systemctl poweroff --no-wall
That should only give you one polkit prompt.

Afaics, everything is working as expected, although I have to admit that
entering the credentials twice for the same command is a nuisance.

Regards,
Michael



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20160711/312a3446/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list