“Authentication Failed” connecting to Linux PC using NoMachine on Windows

Forums / NoMachine for Linux / “Authentication Failed” connecting to Linux PC using NoMachine on Windows

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39012
    dlaurad
    Participant

    Would really appreciate some help!

    I’m running into “Authentication Failed” problem even when my username and password are correct when trying connecting to my Linux computer from my Windows device. I have tried the

    sudo cp /etc/pam.d/nx /etc/pam.d/nx.ori

    sudo cp /etc/pam.d/sshd /etc/pam.d/nx

    method wrote by previous forums

    However, when running the second line sudo cp /etc/pam.d/sshd /etc/pam.d/nx,I somehow get cp: cannot stat '/etc/pam.d/sshd': No such file or directory

    Unfortunately I don’t understand the whole NX PAM configuration thing, so I was hoping if anyone could give me more detailed explanation on how to fix this problem?

    Also here is my /var/log/auth.log output:

    $ sudo grep -r "nxexec" /var/log/auth.log

    Jun 24 16:30:12 nnnnn sudo: nnn : TTY=pts/0 ; PWD=/etc/pam.d ; USER=root ; COMMAND=/usr/bin/grep -r nxexec /var/log/auth.log

    Jun 24 16:39:14 nnnnn nxexec: pam_unix(nx:auth): check pass; user unknown

    Jun 24 16:39:14 nnnnn nxexec: pam_unix(nx:auth): authentication failure; logname= uid=127 euid=0 tty= ruser= rhost=10.3.40.55

    Jun 24 16:39:20 nnnnn nxexec: pam_unix(nx:auth): check pass; user unknown

    Jun 24 16:39:20 nnnnn nxexec: pam_unix(nx:auth): authentication failure; logname= uid=127 euid=0 tty= ruser= rhost=10.3.40.55

    Jun 24 16:39:33 nnnnn sudo: nnn : TTY=pts/0 ; PWD=/etc/pam.d ; USER=root ; COMMAND=/usr/bin/grep -r nxexec /var/log/auth.log

    Jun 24 16:52:26 nnnnn sudo: nnn : TTY=pts/0 ; PWD=/etc/pam.d ; USER=root ; COMMAND=/usr/bin/grep -r nxexec /var/log/auth.log

     

    #39067
    Britgirl
    Keymaster

    System users authentication doesn’t work on systems with pam.d placed in a different location than /etc/pam.d.

    It looks like you have the same issue which was reported a while back by another user. The problem is not in NoMachine, but the fact that you have pam.d iconfig files in two places in your OS. (https://kb.nomachine.com/TR02R09538)

    As a workaround, link pam.d to /etc/ directory before installing NoMachine:

    sudo ln -s /usr/share/defaults/etc/pam.d /etc/pam.d

    or add manually nx and nxlimits files to pam.d directory (/usr/share/defaults/etc/pam.d):

    cat /usr/share/defaults/etc/pam.d/nx
    auth       include       su
    account    include       su
    password   include       su
    session    include       su
    
    cat /usr/share/defaults/etc/pam.d/nxlimits
    session   optional pam_limits.so
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.