Bug 250850 - net/xrdp port defect - doesn't use setusercontext
Summary: net/xrdp port defect - doesn't use setusercontext
Status: Closed DUPLICATE of bug 250852
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-04 03:54 UTC by pumpy
Modified: 2020-11-04 04:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pumpy 2020-11-04 03:54:01 UTC
the upstream code thinks it can do all the login work itself, just doing setuid, initgroups, etc. when instead it should have been patched to use setusercontext.

the upshot is if you define your env in ~/login_conf :setenv, when you rdp into your account, your env doesn't match what it is when you ssh in.

the temporary workaround is to use `exec env -U "$USER" i3` in xrdp's startwm.sh file instead of just `exec i3`.

thanks!
Comment 1 pumpy 2020-11-04 04:09:37 UTC

*** This bug has been marked as a duplicate of bug 250852 ***
Comment 2 pumpy 2020-11-04 04:11:34 UTC
sorry for noise! i didn't prepend category/port so it wasn't auto assigned so i recreated bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250852