Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dbus: Unable to set up transient service directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1352

PostPosted: Mon Jun 17, 2019 10:11 pm    Post subject: dbus: Unable to set up transient service directory Reply with quote

just got done with a big update world.
Config files are all updated however now when I su to root in a terminal I get:
Quote:
SSH passphrase

I wonder why that "ssh" is in there I am on the system locally.
I am able to su to root but the console spits out:
Code:

dbus[11734]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/var/run/user/1000" is owned by uid 1000, not our uid 0


looks like I am on dbus 1.12.12-r1
ck-list-sessions

Code:
Session1:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = 'x11'
        session-class = 'user'
        session-state = 'active'
        active = TRUE
        x11-display = ':0.0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2019-06-17T21:28:05.060220Z'
        login-session-id = '1'
        XDG_RUNTIME_DIR = '/var/run/user/1000'
        VTNr = '7'
Session2:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = 'unspecified'
        session-class = 'user'
        session-state = 'online'
        active = FALSE
        x11-display = ':0.0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2019-06-17T21:28:05.274874Z'
        login-session-id = '1'
        XDG_RUNTIME_DIR = '/var/run/user/1000'
        VTNr = '7'


pam system-login:

Code:
auth            required        pam_tally2.so onerr=succeed
auth            required        pam_shells.so
auth            required        pam_nologin.so
auth            include         system-auth
account         required        pam_access.so
account         required        pam_nologin.so
account         include         system-auth
account         required        pam_tally2.so onerr=succeed
password        include         system-auth
session         optional        pam_loginuid.so
session         required        pam_env.so
session         optional        pam_lastlog.so silent
session         include         system-auth
session         optional        pam_ck_connector.so nox11
session         optional        pam_motd.so motd=/etc/motd
session         optional        pam_mail.so


Login manager is slim
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1352

PostPosted: Wed Aug 14, 2019 5:22 am    Post subject: Reply with quote

Greetings all I pinned the problem down to /etc/pam.d/su
I fixed the first problem by removing pam_ssh.so,
and the second problem by having consolekit create a session upon su
by adding the line
Quote:
session optional pam_ck_connector.so nox11

to the end of the file.

For a while I cleared XDG_RUNTIME_DIR in /etc/security/pam_env.conf
but just ended up with another warning.
Quote:
Unable to set up transient service directory: XDG_RUNTIME_DIR "/var/run/user/0" not available: No such file or directory


Code:
# su authentication. Root is granted access by default.
auth       sufficient   pam_rootok.so
#The pam_wheel PAM module is used to enforce the so-called wheel group. By default it permits #root access to the system if the applicant user is a member of the wheel group. If no group with #this name exist, the module is using the group with the group-ID 0.
auth       required     pam_wheel.so use_uid

auth       include      system-auth
account    include      system-auth
password   include      system-auth
session    include      system-auth
session    required     pam_env.so
#       Without pam_xauth, when xauth is enabled and a  user  uses
#       the  su command to assume superuser priviledges, that user
#       is not able to run X commands as root without somehow giv-
#       ing  root  access  to the xauth key used for the current X
#       session.  pam_xauth solves the problem by  forwarding  the
#       key from the user running su (the source user) to the user
#       whose identity the source user  is  assuming  (the  target
#       user)  when the session is created, and destroying the key
#       when the session is torn down.
session    optional      pam_xauth.so
#Use consolekit to set up XDG_RUNTIME_DIR=/var/run/user/0
session      optional   pam_ck_connector.so nox11

Cheers
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum