I have computers meant for classrooms. I am sending them away and therefore want xrdp to work perfectly.
My problem is that using a script writing "su -c 'service xrdp start'" does not start the service, but if I log in as root and then write "service xrdp start" it starts.
I would prefer it if people could just run a script, write the root password and start the service.
What is the difference between running a script with su -c and actually logging in as su?