Hi. On Thu, 04 Oct 2018 17:10:54 -0400 Robert Moskowitz wrote:
> On 9/30/18 2:56 AM, francis.montag...@inria.fr wrote: >> Hi >> On Wed, 26 Sep 2018 10:32:43 -0500 Rex Dieter wrote: >>> Robert Moskowitz wrote: >>>> It seems Tiger-vncserver is broken WRT polkit for any spin other than >>>> gnome. >> I think that adding the following in the vncserver@.service and/or >> xvnc@.service, in the [service] section, may solve that problem: >> PAMName=login > I changed my service file to have: > [Service] > Type=forking > WorkingDirectory=/home/rgm > User=rgm > Group=rgm > PAMName=login > PIDFile=/home/rgm/.vnc/%H%i.pid > ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' > ... > stopped and restarted vncserver and it failed: ... > (VNC)... > Oct 04 17:02:22 localhost systemd[1]: vncserver@:1.service: New main PID > 2830 does not belong to service, and PID file is not owned by root. > Refusing. > Oct 04 17:02:22 localhost systemd[1]: vncserver@:1.service: New main PID > 2830 does not belong to service, and PID file is not owned by root. > Refusing. ... > so back to using ssh for now unless you have other suggestions? Can you try to set Type to simple and thus get rid of the pid stuff. So try: [Service] Type=simple WorkingDirectory=/home/rgm User=rgm Group=rgm PAMName=login ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' ... -- francis _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org