NoMachine logo
  • PRODUCTS
    • NoMachine for Everybody
      • NoMachine for your OS
    • NoMachine Network
      • What Network Subscription
      • Go to Network
    • NoMachine for the Enterprise
      • NoMachine Enterprise Desktop Products
        • NoMachine Enterprise Desktop
      • NoMachine Terminal Server Products
        • NoMachine Workstation
        • NoMachine Small Business Terminal Server
        • NoMachine Terminal Server
        • NoMachine Enterprise Terminal Server
        • NoMachine Enterprise Terminal Server Cluster
      • NoMachine Cloud Server Products
        • NoMachine Workgroup Cloud Server
        • NoMachine Cloud Server
        • NoMachine Enterprise Cloud Server
        • NoMachine Enterprise Cloud Server Cluster
      • NoMachine Enterprise Support
        • NoMachine Premium Support
        • NoMachine Mission Support
  • DOWNLOAD
    • Download NoMachine
      • NoMachine for Windows
      • NoMachine for Mac
      • NoMachine for Linux
      • NoMachine for iOS
      • NoMachine for Android
      • NoMachine for Chrome OS
      • NoMachine for Raspberry
      • NoMachine for ARM
    • Download NoMachine Enterprise Products
  • USERS
    • NoMachine User Area
  • PARTNERS
    • Find a Partner
      • Technology Partners
      • Access Partners
      • Value Partners
      • Premium Partners
      • Become a Partner
  • STORE
    • Buy from NoMachine
      • NoMachine Network
      • NoMachine Enterprise
  • SUPPORT
    • Get Support
      • Documents and Tutorials
      • Frequently Asked Questions
      • Knowledge Base
      • Forum
      • Report an issue
message logo Home / 

Forum / NoMachine for Linux / Temporarily disable logins, prior to restart

logo forum list
logo forum list

All Forums

Login to the forum
register iconRegister to the forum
logo forum list
logo login list
logo forum list
logo forum list
logo NoMachine-for-Windows NoMachine for Windows  (1369)
logo NoMachine-for-Mac NoMachine for Mac  (739)
logo NoMachine-for-Linux NoMachine for Linux  (2270)
logo NoMachine-for-Mobile NoMachine for Mobile  (170)
logo NoMachine-for-ARM NoMachine for ARM  (43)
logo NoMachine-for-Raspberry-Pi NoMachine for Raspberry Pi  (75)
logo NoMachine-Enterprise-Desktop-Products NoMachine Enterprise Desktop Products  (10)
logo NoMachine-Cloud-Server-Products NoMachine Cloud Server Products  (185)
logo NoMachine-Terminal-Server-Products NoMachine Terminal Server Products  (232)
logo NoMachine-Server-Cluster-Products NoMachine Server Cluster Products  (3)
logo NoMachine-Network-Products NoMachine Network Products  (1)
logo General-Discussions General Discussions  (500)

All Forums

logo NoMachine-for-Windows NoMachine for Windows (1369)
logo NoMachine-for-Mac NoMachine for Mac (739)
logo NoMachine-for-Linux NoMachine for Linux (2270)
logo NoMachine-for-Mobile NoMachine for Mobile (170)
logo NoMachine-for-ARM NoMachine for ARM (43)
logo NoMachine-for-Raspberry-Pi NoMachine for Raspberry Pi (75)
logo NoMachine-Enterprise-Desktop-Products NoMachine Enterprise Desktop Products (10)
logo NoMachine-Cloud-Server-Products NoMachine Cloud Server Products (185)
logo NoMachine-Terminal-Server-Products NoMachine Terminal Server Products (232)
logo NoMachine-Server-Cluster-Products NoMachine Server Cluster Products (3)
logo NoMachine-Network-Products NoMachine Network Products (1)
logo General-Discussions General Discussions (500)

All Forums

logo NoMachine-for-Windows NoMachine for Windows (1369)
logo NoMachine-for-Mac NoMachine for Mac (739)
logo NoMachine-for-Linux NoMachine for Linux (2270)
logo NoMachine-for-Mobile NoMachine for Mobile (170)
logo NoMachine-for-ARM NoMachine for ARM (43)
logo NoMachine-for-Raspberry-Pi NoMachine for Raspberry Pi (75)
logo NoMachine-Enterprise-Desktop-Products NoMachine Enterprise Desktop Products (10)
logo NoMachine-Cloud-Server-Products NoMachine Cloud Server Products (185)
logo NoMachine-Terminal-Server-Products NoMachine Terminal Server Products (232)
logo NoMachine-Server-Cluster-Products NoMachine Server Cluster Products (3)
logo NoMachine-Network-Products NoMachine Network Products (1)
logo General-Discussions General Discussions (500)
logo forum list
logo login list

Temporarily disable logins, prior to restart

Forum / NoMachine for Linux / Temporarily disable logins, prior to restart

Tagged: login disable administration

  • This topic has 3 replies, 3 voices, and was last updated 3 years, 10 months ago by Britgirl.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 13, 2021 at 09:00 #34425
    Chris
    Participant

    We’ve implemented the NoMachine Workstation product on some multi-user workstations for remote operation; these are machines running Red Hat Enterprise Linux 8, that are shared among several shift workers. When in use via NoMachine, each user gets a virtual desktop session, and often we have several people logged in at once. We’ve had these workstations (or some prior version of them) for many years; the use of NoMachine here is relatively new.

    Sometimes these machines need to be restarted for maintenance reasons (about once a week around here), and there’s never a good consistent time to do this when they’re not in use. In normal situations prior to the adoption of NoMachine, we could use the /etc/nologin file for its usual purpose in these situations, to prevent users from logging in until the next restart. We could send a notification of the upcoming restart, and then create the file, and existing users’ sessions are not interrupted so they have time to finish what they’re doing and log out.  Users attempting to log in during this period are presented with an informative message, letting them know the system is about to go down. This works for the local text console, graphical logins via gdm, and remote SSH logins, and the solution can be easily scripted if the maintenance operation is scheduled or regularly recurring.

    For some reason NoMachine does not correctly recognize the presence of this file however, and allows users to log in anyway.

    What is the equivalent operation under NoMachine, to temporarily disable logins for all users, without terminating existing sessions?

    I haven’t managed to find anything relevant, searching the knowledge base and the forums. Closest thing I found was a reference in the KB to the “LoginScreenAccess” setting in server.cfg, which didn’t seem like the correct thing (and I verified, it doesn’t work for this purpose).

    July 14, 2021 at 14:53 #34455
    Carin
    Participant

    Hi Chris,

    Please take a look at the following sections in our NoMAchine Workstation – Installation and Configuration Guide

    How to stop new connections, without shutting down existing sessions
    https://knowledgebase.nomachine.com/DT11R00174#7.4.

    How to broadcast a message to all existing sessions
    https://knowledgebase.nomachine.com/DT11R00174#8.1

    As an alternative, you can also adopt a custom script (UserScriptBeforeLogin) to detect if ‘nologin’ file exists and refuses to login in that case.
    https://knowledgebase.nomachine.com/DT11R00174#11.5

    July 21, 2021 at 08:24 #34530
    Chris
    Participant

    Thank you for the information — this is very useful, especially the whiteboard tool.

    However, I’m confused by the first link, which does not contain any mention of “stopping new connections without shutting down existing connections” — I don’t find anything similar in the text, only a generic description of stopping and starting “a network service”.  No specific instructions for this situation (eg. which specific service(s) to stop, while leaving existing user sessions running). There is nothing in this text that appears to specifically apply to my question.

    I’m wondering if the section you’re referring to with that URL doesn’t exist — indeed, the section at the end of your URL, 7.3, isn’t present in the document, and my browser shows the URL rewritten to https://knowledgebase.nomachine.com/DT11R00178#8.3 when I click your link. So I may not be reading what you intended?

     

    July 23, 2021 at 08:20 #34560
    Britgirl
    Keymaster

    The link was meant to be:

    https://knowledgebase.nomachine.com/DT11R00174#7.2

    Sorry about that. I’ve also corrected the embedded link within Carin’s reply so it points to the right anchored section of the Workstation Guide (https://knowledgebase.nomachine.com/DT11R00174)

    Please try the suggestions in 7.2 and let us know.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)

This topic was marked as solved, you can't post.

Follow Us

  • Home +
    • Everybody
    • Enterprise
    • Download
    • Support
  • Learn More +
    • Features
    • Price and Availability
    • Article and FAQs
    • Software Updates
  • Resources +
    • Forum
    • Installation Guides
    • Knowledge Base
    • Partners
  • Company +
    • About Us
    • Contact Us
    • Become a Partner
    • News

Copyright 2002-2025, NoMachine S.à r.l. - VAT LU25935711 - NoMachine Privacy Policy