xrdp-chkpriv: Should check permission on xrdp.ini file
xrdp version
0.10.6.1
Detailed xrdp version, build options
Hello,
Am I correct that /etc/xrdp/xrdp.ini must be world-readable?
I'm debugging an issue with a Kali Linux user, and they have their xrdp.ini permissions set as 0640, and connection fails. xrdp is configured to run as xrdp user. What happens in this case is that: the main xrdp process starts, no problem. However when trying to connect, xrdp spawns a second process, and this one can't read xrdp.ini.
If I'm correct, then I think that xrdp-chkpriv could check that and report an error if xrdp.ini isn't world-readable.
Thanks,
Arnaud
Operating system & version
Kali Linu
Installation method
dnf / apt / zypper / pkg / etc
Which backend do you use?
xorgxrdp
What desktop environment do you use?
xfce
Environment xrdp running on
vm
What's your client?
remmina
Area(s) with issue?
No response
Steps to reproduce
Set permissions 0640 on /etc/xrdp/xrdp.ini, configure xrdp to run unprivileged, and try to connect.
✔️ Expected Behavior
N/A
❌ Actual Behavior
N/A
Anything else?
No response
Source: neutrinolabs/xrdp