Bug#855272: systemd: policykit does not show TUI for remote logins

Ritesh Raj Sarraf rrs at debian.org
Thu Feb 16 09:42:14 GMT 2017


Package: systemd
Version: 232-17
Severity: important

Hello,

***********************************************************
rrs at chutzpah:~$ echo $DISPLAY
localhost:10.0
14:22 ______   _    
rrs at chutzpah:~$ export DISPLAY=""
14:22 ______   _    
rrs at chutzpah:~$ machinectl login debTemplate                                                  
Failed to get login PTY: Connection timed out
14:23 ______    _  => 1  
rrs at chutzpah:~$ sudo machinectl login debTemplate
[sudo] password for rrs:
Connected to machine debTemplate. Press ^] three times within 1s to exit
session.

Debian GNU/Linux 9 deb-template pts/0

deb-template login:

***********************************************************

AND

***********************************************************

rrs at chutzpah:~/foo$ systemctl enable systemd-nspawn at fitbit
Failed to enable unit: Connection timed out

rrs at chutzpah:~/foo$ sudo systemctl enable systemd-nspawn at fitbit
[sudo] password for rrs:
Created symlink
/etc/systemd/system/machines.target.wants/systemd-nspawn at fitbit.
service _ /etc/systemd/system/systemd-nspawn at fitbit.service.

rrs at chutzpah:~/foo$ echo $DISPLAY
localhost:10.0

***********************************************************

This is a remote machine, to which I'm logged over ssh. The login run is
byobu. When I run machinectl, I do not receive a Terminal Interface
prompt. Instead, it shows a user prompt on the machine's gdm display,
which is very wrong because the displayed prompt is user interactable.

On the other hand, as you can see in the log above, over my ssh session,
it complains about timeout.

Shouldn't the tools be able to detect a local session vs a remote
session ?


***********************************************************
loginctl output

   SESSION        UID USER             SEAT             TTY             
       297       1000 rrs                                               
         5       1000 rrs              seat0            /dev/tty2       
        c1        127 Debian-gdm       seat0            /dev/tty1       
       299       1000 rrs                                               
       298       1000 rrs                                               
         4       1000 rrs              seat0            /dev/tty2       

6 sessions listed.

***********************************************************

I think this is a bug because on my Jessie box running systemd from
backports, this issue is not seen. Ofcourse that box is headless and
does not have gdm installed


***********************************************************
pi at pi:~$ systemctl daemon-reload 
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: root
Password: 
==== AUTHENTICATION COMPLETE ===
pi at pi:~$ 
***********************************************************


-- Package-specific info:

-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (990, 'unstable'), (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.10.0-rc8+ (SMP w/4 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd depends on:
ii  adduser         3.115
ii  libacl1         2.2.52-3
ii  libapparmor1    2.11.0-2
ii  libaudit1       1:2.6.7-1
ii  libblkid1       2.29.1-1
ii  libc6           2.24-9
ii  libcap2         1:2.25-1
ii  libcryptsetup4  2:1.7.3-3
ii  libgcrypt20     1.7.6-1
ii  libgpg-error0   1.26-2
ii  libidn11        1.33-1
ii  libip4tc0       1.6.0+snapshot20161117-5
ii  libkmod2        23-2
ii  liblz4-1        0.0~r131-2
ii  liblzma5        5.2.2-1.2
ii  libmount1       2.29.1-1
ii  libpam0g        1.1.8-3.5
ii  libseccomp2     2.3.1-2.1
ii  libselinux1     2.6-3
ii  libsystemd0     232-17
ii  mount           2.29.1-1
ii  util-linux      2.29.1-1

Versions of packages systemd recommends:
ii  dbus            1.10.14-1
ii  libpam-systemd  232-17

Versions of packages systemd suggests:
ii  policykit-1        0.105-17
ii  systemd-container  232-17
ii  systemd-ui         3-4

Versions of packages systemd is related to:
pn  dracut           <none>
ii  initramfs-tools  0.127
ii  udev             232-17

-- Configuration Files:
/etc/systemd/logind.conf changed:
[Login]
HandleLidSwitch=ignore


-- no debconf information



More information about the Pkg-systemd-maintainers mailing list