Forum / NoMachine for Linux / Terminated session reappears after restart
- This topic has 3 replies, 3 voices, and was last updated 5 years, 8 months ago by Britgirl.
-
AuthorPosts
-
March 6, 2019 at 09:00 #21677mtbs29Participant
I terminated an inactive session from another user (sudo /usr/NX/bin/nxserver –terminate username) and even rebooted the entire machine. However, nxserver –list still shows a session (with a different session ID than before). I believe this causing me to not be able to connect to the server with the client (getting a “Waiting for the desktop user to authorize your connection” message).
Another interesting observation:
1) sudo /usr/NX/bin/nxserver –terminate otherusername
2) sudo /usr/NX/bin/nxserver –list
No sessions
3) Try connecting client as my username. Get “Waiting for the desktop user to authorize your connection” message
4) sudo /usr/NX/bin/nxserver –list
1001 otherusername 127.0.0.1 2294ACAF52F76C4C6CB98DA352FD3837 localhost:4000
How do I really, really terminate another session so that it won’t come back?
March 6, 2019 at 12:04 #21679mlynContributorHello,
It looks as nxserver start permanent physical session as ‘otherusername’.It is a feature which automatically creates session on headless system when using the free NoMachine version or Enterprise Desktop – Are you using either of these? – and it can be changed by keys in the server.cfg (default path /usr/NX/etc/).
When you change something in server.cfg please call command:
/etc/NX/nxserver --restart
to see result.
You can disable it by changing the CreateDisplay key or changing username in the DisplayOwner key.
#
# Enable or disable the automatic creation of an X11 display when no
# X servers are running on this host (e.g. headless machine) to let
# users connect to the desktop. This setting applies to NoMachine
# servers not supporting virtual desktops and permits to have one
# single display.
#
# 1: Enabled. NoMachine will create automatically the new display at
# server startup. This setting has to be used in conjunction with
# ‘DisplayOwner’ and ‘DisplayGeometry’.
#
# 0: Disabled. NoMachine will prompt the user for creating the new
# display. This is the default.
#
#CreateDisplay 0#
# When ‘CreateDisplay’ is enabled, specify the display owner and let
# NoMachine create the new display without querying the user. If the
# server supports only one concurrent connection, the connecting user
# must be the display owner set in this key.
#
#DisplayOwner “”#
# When ‘CreateDisplay’ is enabled, specify the resolution of the new
# desktop in the WxH format. Default is 800×600.
#
#DisplayGeometry 800×600March 6, 2019 at 14:41 #21682mtbs29ParticipantThanks! I am running the free version. I had enabled CreateDisplay (and messed with a few other settings) without fully understanding what I was doing. Switching it back fixed it.
March 12, 2019 at 17:28 #21718BritgirlKeymasterThanks for letting us know!
-
AuthorPosts
This topic was marked as solved, you can't post.