NoMachine: authentication failed with correct credentials » 15 April 2023

This is mostly a note to myself – I’ve been setting up a temporary Linux box for some errands, and with xrdp being excruciatingly slow, I’ve decided to go for NoMachine.

Everything looked fine until I’ve noticed I couldn’t sign in, even though I was absolutely certain that my username and password was correct. After a not-so-quick googling here’s the workaround:

  • sudo nano /usr/NX/etc/server.cfg
  • Look for EnablePasswordDB
  • Uncomment the line and set it to 1
  • cd /usr/NX/bin && sudo ./nxserver --useradd $USER
  • Pick a password that may or may not be the same as your local password