Non root user SSH X11 access

Latest response

Version: RHEL 7.(latest)

I am trying and failing thus far to find out why non-root users when they SSH in fail to access X11. The root user has no access issues when they SSH in.

However, if I go to the VMware console and login with the non-root user once, they can access X11 without issue from them on with SSH. So my question is, what changes when I manually login via the X11 GUI which then allows that user via SSH to run for instance:

xset -q

Prior to logging in manually via X11 gui, this fails, after, it succeeds from then on. I am producing these images via automation and want to know what's changing so I can do via Ansible.

Responses