Skip to content

Running xrdp (and sesman) as one (non-root) user and logging in as another #2189

Closed Answered by kalelkenobi
kalelkenobi asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks to your input @matt335672 I think I got it to work!!
For anyone who might be interested:
Adding this to the Dockerfile
RUN setcap cap_kill,cap_setuid,cap_setgid+ep /usr/sbin/xrdp-sesman
enables the xrdp-sesman process to change UID, GID and kill other processes regardless of the user launching it. I'm not sure if this makes the container less secure than what it would be with xrdp-sesman running as root, but every feedback is more than welcome. Thanks again for your valuable pointer @matt335672, I couldn't have done it without it.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@kalelkenobi
Comment options

Comment options

You must be logged in to vote
7 replies
@matt335672
Comment options

@kalelkenobi
Comment options

@matt335672
Comment options

@kalelkenobi
Comment options

Answer selected by kalelkenobi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants