After further investigation, I found the source of my issue.

Basically the / directory had the wrong ownership.   Not sure how I did
that but it seemed to have the side-effect of making systemd-tmpfiles
not create directories as it should.

I saw messages like this in the log that clued me in.

May 09 21:11:49 x1 systemd-tmpfiles[1665]: Detected unsafe path
transition / (owned by charles) → /tmp (owned by root) during
canonicalization of /tmp.

After a chown, 
ls -ld /
now shows ownership by root:root correctly and I no longer get errors in the 
log.

Note this file is what creates the directories

root@x1:~# cat /lib/tmpfiles.d/x11.conf 
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# See tmpfiles.d(5) for details

# Make sure these are created by default so that nobody else can
# or empty them at startup
D! /tmp/.X11-unix 1777 root root 10d
D! /tmp/.ICE-unix 1777 root root 10d
D! /tmp/.XIM-unix 1777 root root 10d
D! /tmp/.font-unix 1777 root root 10d
D! /tmp/.Test-unix 1777 root root 10d

# Unlink the X11 lock files
r! /tmp/.X[0-9]*-lock


And this helped me figure out the issue

journalctl -xe -u  systemd-tmpfiles-setup.service


Thanks for looking into it, sorry for the bug report.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1972749

Title:
  Logging into a second Wayland session/user doesn't work [Failed to
  start X Wayland: Wrong ownership for directory "/tmp/.X11-unix"]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1972749/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to