Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-4195

login required over ssh to access --user session missing inclusion of pam_system.so in sshd?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • Marlin 13.0.0
    • None
    • None

      I can't "reach" the user session without doing a login manually over ssh:

      root@h3ulcb:~# systemctl --user status agl-session@agl-driver
      Failed to connect to bus: No such file or directory
      
      

      obviously I have have no DBUS_ var setting it up and I need to manually do a login to get it:

      root@h3ulcb:~# export 
      export EDITOR="vi"
      export HOME="/home/root"
      export LD_LIBRARY_PATH=":/usr/lib"
      export LOGNAME="root"
      export OLDPWD
      export OPIEDIR
      export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
      export PS1="\\u@\\h:\\w\\\$ "
      export PWD="/home/root"
      export QPEDIR
      export QTDIR
      export SHELL="/bin/sh"
      export SHLVL="1"
      export SSH_CLIENT="::ffff:192.168.50.1 44688 22"
      export SSH_CONNECTION="::ffff:192.168.50.1 44688 ::ffff:192.168.50.2 22"
      export SSH_TTY="/dev/pts/0"
      export TERM="xterm-256color"
      export USER="root"
      root@h3ulcb:~# login
      h3ulcb login: root
      Last login: Mon Jun 29 03:06:59 UTC 2020 from ::ffff:192.168.50.1 on pts/0
      root@h3ulcb:~# export 
      export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/0/bus"
      export EDITOR="vi"
      export HOME="/home/root"
      export HUSHLOGIN="FALSE"
      export LD_LIBRARY_PATH=":/usr/lib"
      export LOGNAME="root"
      export MAIL="/var/spool/mail/root"
      export OLDPWD
      export OPIEDIR
      export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
      export PS1="\\u@\\h:\\w\\\$ "
      export PWD="/home/root"
      export QPEDIR
      export QTDIR
      export SHELL="/bin/sh"
      export SHLVL="1"
      export TERM="xterm-256color"
      export USER="root"
      export XDG_RUNTIME_DIR="/run/user/0"
      export XDG_SESSION_CLASS="user"
      export XDG_SESSION_ID="c2"
      export XDG_SESSION_TYPE="tty"
      

      PS: I've assigned this to a-wai but I believe that sshd should be doing it. jsmoeller should we be using dropbear instead of open-sshd?

      /cc scottm

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jsmoeller Jan-Simon Moeller
            mvlad Marius Vlad
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: