I manually added
xrdp:*:1002:1002:xrdp daemon:/nonexistent:/usr/sbin/nologin
Password : <disabled>
did you remove the comment # before runtime_user ?Well, I did exactly as the steps in your post, but I'm still getting warning message when boot system, "You are running xrdp as root. This is not safe".
did you remove the comment # before runtime_user ?
Do you success to connect to xrdp?Shouldn't xrdp user and group be added by the port himself?
I'm testing xrdp for the first time and I got this "running as root" warning too.
Yep, running it for the first time today. Working fine.Do you success to connect to xrdp?
Because: https://forums.freebsd.org/threads/xrdp-isnt-working-anymore.98908/
Looking at ports UIDs and GIDs:the most recent xrdp.ini suggests
runtime_user=xrdp
runtime_group=xrdp
I manually added
xrdp:*:1002:1002:xrdp daemon:/nonexistent:/usr/sbin/nologin
Password : <disabled>
don't forget
sesman.ini:
SessionSockdirGroup=xrdp
-rw-r--r-- 1 root wheel 1793 Dec 10 19:20 cert.pem
-rw-r----- 1 root xrdp 3272 Dec 10 19:20 key.pem
-rw-r--r-- 1 root wheel 2939 Dec 10 19:20 rsakeys.ini
% grep xrdp UIDs
_xrdp:*:648:648::0:0:xrdp daemon:/nonexistent:/usr/sbin/nologin
% grep xrdp GIDs
_xrdp:*:648:
USERS= _xrdp
GROUPS= _xrdp
runtime_user=_xrdp
runtime_group=_xrdp
SessionSockdirGroup=_xrdp
chown _xrdp:_xrdp /usr/local/etc/{cert.pem,key.pem,rsakeys.ini}
% ps waux |grep xrdp
_xrdp 64452 0.0 0.1 26484 11180 v0 I 21:29 0:00.01 /usr/local/sbin/xrdp
root 64494 0.0 0.1 19720 8276 v0 I 21:29 0:00.01 /usr/local/sbin/xrdp-sesman
nunotex 64542 0.0 0.0 13048 2516 0 S+ 21:38 0:00.00 grep xrdp
nunotex@debian:~$ ps waux |grep xrdp
root 726 0.0 0.0 11532 4560 ? Ss Aug24 0:00 /usr/sbin/xrdp-sesman --nodaemon
root 1267 0.0 0.0 12312 6776 ? Ss Aug24 0:00 /usr/sbin/xrdp --nodaemon
root 36946 0.7 0.2 101136 20796 ? Sl 21:41 0:01 /usr/sbin/xrdp --nodaemon
root 36948 0.0 0.1 16848 8184 ? S 21:41 0:00 xrdp-sesexec
nunotex 36990 5.0 1.0 283712 86448 ? Sl 21:41 0:07 /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
nunotex 37020 0.0 0.0 92260 6344 ? Sl 21:41 0:00 /usr/sbin/xrdp-chansrv
nunotex 37873 0.0 0.0 6604 2272 pts/0 S+ 21:44 0:00 grep xrdp