Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBUS_SESSION_BUS_ADDRESS enviroment variable is not set #9774

Open
tomasvilda opened this issue Jan 13, 2022 · 3 comments
Open

DBUS_SESSION_BUS_ADDRESS enviroment variable is not set #9774

tomasvilda opened this issue Jan 13, 2022 · 3 comments
Labels

Comments

@tomasvilda
Copy link

DBUS_SESSION_BUS_ADDRESS environment variable is not set on teleport session

What happened:

When logged to remote teleport host DBUS_SESSION_BUS_ADDRESS is not set in environment, because of that user systemd is not accessible

root@host:~# systemctl --user status
Failed to connect to bus: No such file or directory

What you expected to happen:

DBUS_SESSION_BUS_ADDRESS should be set as on usual login using terminal or ssh session.

For example for root session:

DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus

systemctl --user status command should return current status of systemd for user space

Reproduction Steps

  1. Login to remote host using teleport
  2. run command env
  3. DBUS_SESSION_BUS_ADDRESS should be set

Teleport details

  • Teleport version (run teleport version): Teleport v8.1.0 git:v8.1.0-0-g3dc269bef go1.17.3
@tomasvilda tomasvilda added the bug label Jan 13, 2022
@zmb3
Copy link
Collaborator

zmb3 commented Jan 14, 2022

@tomasvilda
Copy link
Author

No it doesn't help with this problem. Also enabled PAM, but that doesn't solve the problem. No XDG_* and DBUS env variables appear on teleport session.

@mkysel
Copy link

mkysel commented Oct 11, 2023

I've just hit the same issue. It makes using systemctl out of the box a bit complicated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants