-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
base: devel
Are you sure you want to change the base?
Conversation
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.
@derekschrock - if you've got the time to look at this, it might be useful for you on FreeBSD. Any comments gratefully received. |
docs/man/sesman.ini.5.in
Outdated
\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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Using |
During the testing of the system environment with LDAP + NFS (homedir) + XRDP server structure, it was found that when the XRDP server is a deepin linux, setting XAuthorityInSystemDir=yes leads to the loss of user authentication information. When XAuthorityInSystemDir=no, everything works fine. LDAP users can login to the XRDP server, and the user's home directory is on the NFS service. When XAuthorityInSystemDir=yes, the performance is good, and the impact of restarting NFS on users is reduce. Creating a symbolic link from /var/run/$UID/Xauthority to ~/.Xauthority is ineffective. |
Thanks for raising this @tsz8899 I don't fully understand the problem:-
It could be the XAUTHORITY hasn't been communicated to the |
The phenomenon occurs within the xrdp session.The issue was found to be caused by an exception from org.deepin.dde.lock in the Deepin system, and it has been reported to the operating system developers. XAuthorityInSystemDir is working normally in the NFS scenario. |
Thanks for letting us know @tsz8899 |
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.