{"action":"closed","issue":{"url":"https://api.github.com/repos/TigerVNC/tigervnc/issues/714","repository_url":"https://api.github.com/repos/TigerVNC/tigervnc","labels_url":"https://api.github.com/repos/TigerVNC/tigervnc/issues/714/labels{/name}","comments_url":"https://api.github.com/repos/TigerVNC/tigervnc/issues/714/comments","events_url":"https://api.github.com/repos/TigerVNC/tigervnc/issues/714/events","html_url":"https://github.com/TigerVNC/tigervnc/issues/714","id":358868509,"node_id":"MDU6SXNzdWUzNTg4Njg1MDk=","number":714,"title":"How can I config multi user use VNC","user":{"login":"luoyanghero","id":8263744,"node_id":"MDQ6VXNlcjgyNjM3NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/8263744?v=4","gravatar_id":"","url":"https://api.github.com/users/luoyanghero","html_url":"https://github.com/luoyanghero","followers_url":"https://api.github.com/users/luoyanghero/followers","following_url":"https://api.github.com/users/luoyanghero/following{/other_user}","gists_url":"https://api.github.com/users/luoyanghero/gists{/gist_id}","starred_url":"https://api.github.com/users/luoyanghero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luoyanghero/subscriptions","organizations_url":"https://api.github.com/users/luoyanghero/orgs","repos_url":"https://api.github.com/users/luoyanghero/repos","events_url":"https://api.github.com/users/luoyanghero/events{/privacy}","received_events_url":"https://api.github.com/users/luoyanghero/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-11T03:01:23Z","updated_at":"2018-10-26T12:56:13Z","closed_at":"2018-10-26T12:56:13Z","author_association":"NONE","body":"I use CentOS7.5 x64 server, installed tigervnc 1.8.0.\r\nOur server have many users, I config vnc for each user. I do the following thing:\r\n\r\nsu root\r\n######Config usernameA\r\n\r\n> cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:3.service\r\n> ##gvim /etc/systemd/system/vncserver@\\:3.service\r\n> \r\n\r\n#Change to the specified usernameA.\r\n\r\n#The service file changed as follow:\r\n##########\r\n\r\n> [Unit]\r\n> Description=Remote desktop service (VNC)\r\n> After=syslog.target network.target\r\n> \r\n> [Service]\r\n> Type=forking\r\n> \r\n> #Clean any existing files in /tmp/.X11-unix environment\r\n> ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'\r\n> ExecStart=/usr/sbin/runuser -l luoyangstd -c \"/usr/bin/vncserver %i\"\r\n> PIDFile=/home/luoyangstd/.vnc/%H%i.pid\r\n> ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'\r\n> \r\n> [Install]\r\n> WantedBy=multi-user.target\r\n> \r\n\r\n##########\r\n\r\n#Then start the service.\r\n\r\n> systemctl enable vncserver@:3.service #autostart when boot. \r\n> firewall-cmd --permanent --zone=public --add-service vnc-server\r\n> firewall-cmd --reload\r\n> systemctl daemon-reload\r\n> systemctl stop vncserver@:3.service\r\n> systemctl start vncserver@:3.service\r\n> systemctl status vncserver@:3.service\r\n> \r\n\r\n######Config usernameB\r\n\r\n> cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:4.service\r\n> ##gvim /etc/systemd/system/vncserver@\\:4.service\r\n> \r\n\r\n#Change to the specified usernameA.\r\n\r\n> systemctl enable vncserver@:4.service #autostart when boot. \r\n> firewall-cmd --permanent --zone=public --add-service vnc-server\r\n> firewall-cmd --reload\r\n> systemctl daemon-reload\r\n> systemctl stop vncserver@:4.service\r\n> systemctl start vncserver@:4.service\r\n> systemctl status vncserver@:4.service\r\n> \r\n\r\n#some user cannot start the service:\r\n################\r\n\r\n> [luoy@tteda ~/Documents]$ systemctl start vncserver@:4.service\r\n> Job for vncserver@:4.service failed because the control process exited with error code. See \"systemctl status vncserver@:4.service\" and \"journalctl -xe\" for details.\r\n> [luoy@tteda ~/Documents]$ systemctl status vncserver@:4.service\r\n> \\u25cf vncserver@:4.service - Remote desktop service (VNC)\r\n>    Loaded: loaded (/etc/systemd/system/vncserver@:4.service; disabled; vendor preset: disabled)\r\n>    Active: failed (Result: exit-code) since Tue 2018-09-11 02:52:49 CST; 8s ago\r\n>   Process: 6151 ExecStart=/usr/sbin/runuser -l luoyangstd -c /usr/bin/vncserver %i (code=exited, status=1/FAILURE)\r\n>   Process: 6147 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)\r\n> \r\n\r\n################\r\n\r\nI dont't know why this happen, I ignored it. And I finished vnc config for each user.\r\n\r\nNow I reboot the sever. userA and userB is OK, others failed.\r\nNow I reboot the sever again, userC and userH is OK, others failed.\r\n\r\nQuestion is: How can I config multi user use VNC?\r\n\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/63254625-how-can-i-config-multi-user-use-vnc?utm_campaign=plugin&utm_content=tracker%2F3557444&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F3557444&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}
{"actor":{"display_login":"CendioOssman"}}