WebIt turns out that my in my installation of debian stretch the environment variable XDG_RUNTIME_DIR was badly configured for all non root users and was set to /run/user/0. Instead it should be set to the id of the current user. WebMay 29, 2024 · As a result Systemd could not be run as a user service. This can prevent Tableau Services from being able to be run, and prevent TSM commands from being used. The pam_systemd.so module is required to initialize the XDG_RUNTIME_DIR and if not available, may result in errors setting the environment variable. Additional Information
error: XDG_RUNTIME_DIR not set in the environment
WebXDG_RUNTIME_DIR is necessary for systemctl --user to work. I have set up ubuntu server 16.04 to run systemd user sessions. Now, when trying to administer them, I find that when changin a user via sudo -u $user -i or even su - $user, the environment does not have XDG_RUNTIME_DIR set, preventing systemctl --user from working. WebOct 18, 2014 · Set: export XDG_RUNTIME_DIR=/run/user/$ (id -u) To make this permanent, put it into your .bashrc file: echo "export XDG_RUNTIME_DIR=/run/user/$ (id -u)" >> ~/.bashrc source ~/.bashrc Share Improve this answer Follow answered Aug 31, 2024 at 14:30 Tommaso Merciai 1 Add a comment Your Answer summary of the movie heneral luna
linux - Systemd $XDG_RUNTIME_DIR not set - Stack …
WebSep 18, 2024 · systemd doesn't start services in the environment of the shell, so the service doesn't see the environment variable XDG_RUNTIME_DIR. Are you using a login or session … WebJun 2, 2024 · The keys exported are: _ DISPLAY HOME LANG LOGNAME MANAGERPID PATH PWD SHELL SHLVL USER XDG_RUNTIME_DIR This is a far cry from the full list of environment variables present if I launch a desktop application from my tray or from my launcher (I'm on elementary OS Loki aka Ubuntu 16.04 xenial). WebDec 18, 2024 · Systemd $XDG_RUNTIME_DIR not set Ask Question Asked 5 years, 3 months ago Modified 5 years, 3 months ago Viewed 3k times 8 When I start systemd as root on … summary of the movie jaws