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

Add XAuthorityInSystemDir option #3393

Open
wants to merge 3 commits into
base: devel
Choose a base branch
from

Conversation

matt335672
Copy link
Member

Fixes #3383

Add an option to allow XAUTHORITY to be moved away from $HOME.

This is modelled on the lightm 'user-authority-in-system-dir' option, and also current GDM default behaviour.

A minor typo in sesman.ini(5) related to the port setting is also fixed.

Add an option to allow XAUTHORITY to be moved away from $HOME.

This is modelled on the lightm 'user-authority-in-system-dir' option,
and also current GDM default behaviour.
@matt335672
Copy link
Member Author

@derekschrock - if you've got the time to look at this, it might be useful for you on FreeBSD. Any comments gratefully received.

\fBXAuthorityInSystemDir\fR=\fI[no|yes]\fR
If set to \fByes\fR, xrdp will set XAUTHORITY to be in a system directory
(currently @socketdir@/\fI<uid>\fR) which is only accessible to the
logged-in user.
Copy link
Contributor

@moobyfr moobyfr Jan 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps adding "Default to no" to be coherent with the others variables

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @moobyfr..

Now looks like this in an 80 column terminal:-

image

What do you think?

@derekschrock
Copy link
Contributor

Looks good.

Using no xrdp is using ~/.Xauthority
Using yes xrdp is using /var/run/xrdp/<UID>/Xauthority

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

Successfully merging this pull request may close these issues.

Add support for a private xauth file
3 participants