Ubuntu with XRDP Gets Cannot read private key file /etc/xrdp/key.pem: Permission denied Error



  • By default when XRDP is installed to Ubuntu 19.10 (and it appears, several other versions) there is an error where the default user for XRDP's service lacks access to the directory to which /etc/xrdp links. Of course you can change the perms on the file, but that is not recommended. To allow the user xrdp use the file, just add it to the ssl-cert group like this...

    sudo adduser xrdp ssl-cert