On 9/30/18 2:56 AM, Francis.Montagnac@xxxxxxxx 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:
# systemctl -l --no-pager status vncserver@:1
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:1.service; disabled;
vendor preset: disabled)
Active: failed (Result: protocol) since Thu 2018-10-04 17:02:22 EDT;
5min ago
Process: 2806 ExecStart=/usr/bin/vncserver -autokill :1 (code=exited,
status=0/SUCCESS)
Process: 2788 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :1 >
/dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
Oct 04 17:02:13 localhost systemd[1]: Starting Remote desktop service
(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.
Oct 04 17:02:22 localhost systemd[1]: vncserver@:1.service: Failed with
result 'protocol'.
Oct 04 17:02:22 localhost systemd[1]: Failed to start Remote desktop
service (VNC).
so back to using ssh for now unless you have other suggestions?
thanks for this one.
You may want also to add:
UtmpIdentifier=%I
UtmpMode=user
to have the users listed for example by the who command.
Is this documented anywhere, ideally in a bug report?
I don't know.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx