Forum / General Discussions / One session per user
- This topic has 9 replies, 2 voices, and was last updated 1 year, 8 months ago by Britgirl.
-
AuthorPosts
-
April 4, 2023 at 07:46 #43696jeserParticipant
I would like to have one user logged in and only allow some one to login with the same credential when the other session is closed. There is no a good way to have separate logins to start with. Ideally the logged in user would get a notification that someone else would like to take over and then can agree or decline the request.
In summary
Person A logs in as GeneralUser, then Person B tries to log in as GeneralUser. Person A will be notified of request and can confirm, session migrates to Person B, or declines and session stays with Person A.
Is this possible?
April 4, 2023 at 11:17 #43702BritgirlKeymasterNote that the default behaviour is the following: when the system account is the same, NoMachine assumes by default that the connecting user is also the same and performs the automatic migration of the session from one device to the other. E.g. user A connects. User B logs in from a different device but with the same username and credentials of user A: session closes on the device of user A and it’s re-opened on the device of user B.
What you can do is this if your two users are logging in with the same username: untick the option “Don’t require acceptance if the user logged in as the owner of the desktop” on the NoMachine server side, the machine you are connecting to (see image). The default setting is to not require acceptance when the owner of the desktop logs in. Unticking it means that when the second user connects (who is still the owner given that the account is only one and it is shared with the first), the first user will be asked what he wants to do. When the first user accepts, they will be disconnected and the second user will then be able to log in.
Attachments:
April 5, 2023 at 05:02 #43716jeserParticipantThank you for this answer but there is still an issue and the issue is that if no session is running and I try to connect it opens the dialog to ask for permission but as no user is connected no one can accept this request.I am a bit surprised that is the case as I would have assumed that you always can login as long as no one else created a session with the same credentials.
Thank you already for any further clarification.
April 5, 2023 at 08:42 #43719BritgirlKeymasterI am a bit surprised that is the case as I would have assumed that you always can login as long as no one else created a session with the same credentials.
Let’s try and understand better what is not happening/not happening in your case.
Please attach a screenshot of the “User acceptance” section in Security of Server settings of the computer you are connecting to.
Also, tell us what OS and OS version is on that server side, and what NoMachine product you installed there. Thanks.
April 6, 2023 at 09:22 #43727jeserParticipantThanks. Attached is the server config file. As you can see it has the acceptance set to not accept any connection if someone already is connected. The setting for the UserAcceptance is PhysicalDesktopAccessNoAcceptance administrator,trusted
The OSs I am using are both ubuntu 22.04. And I installed the free version of NoMachine.
April 7, 2023 at 00:42 #43748jeserParticipantThe cfg extension was blocked. Let’s see if the txt one goes fine. Just in case I also added a screenshot of the GUI setting section.
This is the output of nxserver –list
NX> 127 Available sessions:Display Username Remote IP Session ID Node
——- ——– ——— ———- —-If I then try to connect with any User it get the screen that the Owner will be notified of my request. But as you can see there is no one connected…
Thank you for any hints what is going on here.
April 10, 2023 at 05:04 #43781jeserParticipantBy now I am using NoMachine Workstation Evaluation – Version 8.4.2, as i need the web-interface for my application.
With is everything works as expected using the NoMachine client BUT the issue still exist when using the browser to connect.
“Unchecking” Don’t require acceptance if the user logged in as the owner of the desktop on the server, displays the ask for acceptance dialog even if no user user is connected. Even when I try to create a new Virtual Desktop. That can and should not be the default I imagine.
Any suggestions or comments are welcome.
April 13, 2023 at 17:06 #43844BritgirlKeymasterJeser, the Free Edition, for access to the physical display, can be configured to show the dialog if you are logged in or not show the dialog at all. If you configure it to show the dialog, in your case when sharing the same username, it will always show. That means if no one is logged in already, when you try to connect, no one can accept the request to connect.
With regards to the Workstation, which is for virtual desktops on Linux, we’re checking for a possible problem with web sessions and will come back to you.
April 17, 2023 at 04:52 #43886jeserParticipantthere is something not working with the solution you suggested. On the workstation version of the server.
I configured it that owner needs acceptance. if I do that User A gets logged out automatically no warning and User B sees the asking for permission screen. How is that possible? Of course no one can accept the request as User A is auto disconnected. This is very unfortunate and I was hoping this is not the default behavior. Any further suggestions? It is essential that this type of User switching where current user needs to accept new User before being disconnected works.
April 19, 2023 at 10:38 #43931BritgirlKeymasterI configured it that owner needs acceptance. if I do that User A gets logged out automatically no warning and User B sees the asking for permission screen. How is that possible?
We have opened a Trouble Report for this incorrect behaviour. You can track it using the link below.
Removing ‘Owner’ from VirtualDesktopAccessNoAcceptance will ask for permission during creating virtual sesssion
https://kb.nomachine.com/TR04U10834Sessions with
AgentX11VectorGraphics 1
are not affected. -
AuthorPosts
This topic was marked as solved, you can't post.