Bug 250850

Summary: net/xrdp port defect - doesn't use setusercontext
Product: Ports & Packages Reporter: pumpy
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed DUPLICATE    
Severity: Affects Some People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

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