-
-
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
Support running xrdp daemon as user privilege like Debian does #2965
Comments
My suggestion would be to get this in (potentially) for v0.11.x as it will involve some config changes. Also, Debian (who support this feature out-of-band) may need a bit of time to adopt this. @Natureshadow - any thoughts? |
I've done a bit of design work on this. Comments welcome. We can make this facility optional, but my thinking is we should probably try to enforce it in 2024. We should not be running xrdp as root. Current thinking is to add these values to xrdp.ini:-
and set the existing (but commented)
PID files then get created in
Log files are opened by We need to |
Having a dedicated user could also help storing data which are currently created in |
Hi @moobyfr Thanks for commenting. The data that used to be stored under We stopped storing it in None of this data needs to survive a reboot and it's all very small, so storing it under I can't find a good recommendation for |
Changed my mind on the sockets dir. It's a bad idea. Best practice seems to be to create the PID file with privilege and then leave it there when the program exits (as it can't be deleted without privilege). The code that stops the daemon can do the cleanup. This seems easy to to in the init scripts for System-V and FreeBSD. I've got something working, and hope to get it ready for review by the end of the week. |
@moobyfr why not /var/tmp/xrdp? |
I'm thinking of adding support upstream running xrdp daemon as user privileges. Some improvements for this have already been introduced by @matt335672.
The text was updated successfully, but these errors were encountered: