Authentication failed with error 12

Forum / NoMachine for Mac / Authentication failed with error 12

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36090
    hachque
    Participant

    I just installed NoMachine for Mac (server) from the command line with roughly:

    installer -pkg /Volumes/NoMachine/NoMachine.pkg -target /

    This is with NoMachine 7.7.4_1 DMG. The machine is an M1 Mac running macOS Monterey. Rosetta 2 is installed.

    After starting the server, any attempt to authenticate as the “administrator” results in this entry in the logs, and login failing:

    ==> /Library/Application Support/NoMachine/var/log/nxerror.log <==
    818 259 04:04:57 565 nxexecPAMCheckCredentials: ERROR!Authentication failed with error 12.
    Info: Connection from 220.253.128.13 port 1460 closed on Wed NovĀ  3 04:04:57 2021.
    Info: Handler with pid 781 terminated on Wed NovĀ  3 04:04:57 2021.

    There’s no documentation on what “error 12” means. I don’t have this issue on an Intel based Mac where I installed NoMachine visually through the installer.

    Can anyone shed some light on what error 12 means so I can fix the issue?

    #36124
    Carin
    Participant

    Hi hachque,

    You can find information about error 12 here: https://knowledgebase.nomachine.com/AR03S01118
    This error can also be shown when the password is not correct.

    #36128
    hachque
    Participant

    I ended up figuring this out.

    After installing NoMachine with:

    installer -pkg /Volumes/NoMachine/NoMachine.pkg -target /

    You then need to manually run the install scripts to configure PAM:

    /Applications/NoMachine.app/Contents/Frameworks/scripts/setup/nxnode –install
    /Applications/NoMachine.app/Contents/Frameworks/scripts/setup/nxclient –install
    /Applications/NoMachine.app/Contents/Frameworks/scripts/setup/nxplayer –install
    /Applications/NoMachine.app/Contents/Frameworks/scripts/setup/nxserver –install

    If this is done correctly, /etc/pam.d/nx should exist, and login will work correctly.

    #36253
    Britgirl
    Keymaster

    Thanks for letting us know.

Viewing 4 posts - 1 through 4 (of 4 total)

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