Password authentification with users having same UID

Forum / NoMachine Cloud Server Products / Password authentification with users having same UID

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15379
    AarneAarebye
    Participant

    NoMachine Workstation subscription

    Linux SLES12 SP2

    Our setup on server side is that we have two root like users with same UID. Password authentification did not work because authentication was taken for user root instead of user aroot. As I changed the sequence in /etc/passwd it worked (having aroot before root).

    #########################################################

    Excerpt from /etc/passwd:

    root:x:0:0:root:/root:/bin/bash

    aroot:x:0:0::/root:/bin/bash

    nx:x:480:1007::/var/NX/nx:/etc/NX/nxserver

    If I try to login with the lroot user, nxserver tries to authenticate with the root credentials (see DEBUG log below).

    When I change the sequence of root and aroot, it works:

    aroot:x:0:0::/root:/bin/bash

    root:x:0:0:root:/root:/bin/bash

    nx:x:480:1007::/var/NX/nx:/etc/NX/nxserver

    DEBUG log:

    2017-08-01 14:56:23 038.583 12329 NXSERVER handling command ‘login’ ”
    2017-08-01 14:56:23 038.677 12329 NXSERVER Local IP determined from NX_CONNECTION: 10.18.207.166 56446 10.76.181.122 4000
    2017-08-01 14:56:23 038.926 12329 NXSERVER Sent request message ‘NX> 250 Properties: username required for server1 port: 4000 service login: ‘
    2017-08-01 14:56:26 128.831 12329 NXSERVER NXParser: checkCanRead has: FD#8
    2017-08-01 14:56:26 129.827 12329 NXSERVER Previous message repeated 5 times
    2017-08-01 14:56:26 129.920 12329 NXSERVER received response ‘aroot’
    2017-08-01 14:56:26 130.673 12329 NXSERVER sent request message ‘NX> 250 Properties: password required for server1 port: 4000 service login: ‘
    2017-08-01 14:56:26 134.148 12329 NXSERVER NXParser: checkCanRead has: FD#8
    2017-08-01 14:56:26 135.773 12329 NXSERVER Previous message repeated 5 times
    2017-08-01 14:56:26 135.892 12329 NXSERVER received response ‘*****’
    2017-08-01 14:56:26 136.354 12329 NXSERVER userInfo: get uid for username: nx return 480.
    2017-08-01 14:56:26 136.628 12329 NXSERVER userInfo: get uid for username: aroot return 0.
    2017-08-01 14:56:26 136.990 12329 NXSERVER userInfo: get username for uid: 0 return root.
    2017-08-01 14:56:26 137.145 12329 NXSERVER Username based on uid 0 is root.
    2017-08-01 14:56:26 137.536 12329 NXSERVER userInfo: get uid for username: nx return 480.
    2017-08-01 14:56:26 137.716 12329 NXSERVER userInfo: get uid for username: aroot return 0.
    2017-08-01 14:56:26 137.892 12329 NXSERVER userInfo: get username for uid: 0 return root.
    2017-08-01 14:56:26 138.029 12329 NXSERVER Username based on uid 0 is root.
    2017-08-01 14:56:26 138.275 12329 NXSERVER checking user root credentials
    2017-08-01 14:56:26 138.441 12329 NXSERVER isNXLibraryLoaded ‘libnxh’ = ‘1’.
    2017-08-01 14:56:26 138.575 12329 NXSERVER ‘libnxh’ library was already loaded.
    2017-08-01 14:56:26 138.779 12329 NXSERVER NXOpen FD#11 – file /usr/NX/lib/perl/nxserver/ShellQuote.pm with mode 0 and permissions 0 from main::nxrequire.
    2017-08-01 14:56:26 140.108 12329 NXSERVER NXClose FD#11 from main::nxrequire.
    2017-08-01 14:56:26 140.318 12329 NXSERVER Executing command: ‘/usr/NX/bin/nxexec –auth’.
    2017-08-01 14:56:26 140.536 12329 NXSERVER NXRunCommand: setting command to ‘/usr/NX/bin/nxexec –auth’.
    2017-08-01 14:56:26 140.638 12329 NXSERVER NXRunCommand: setting to save pid to ‘SCALAR(0x3e2acf0)’.
    2017-08-01 14:56:26 140.734 12329 NXSERVER NXRunCommand: setting CMD_IN not to be closed.
    2017-08-01 14:56:26 140.820 12329 NXSERVER NXRunCommand: setChildDescriptors started
    2017-08-01 14:56:26 140.889 12329 NXSERVER NXRunCommand: __setupParentChildStdin started
    2017-08-01 14:56:26 141.050 12329 NXSERVER NXPipeCreate(FD#11, FD#12, 0) returned ‘1’
    2017-08-01 14:56:26 141.137 12329 NXSERVER NXRunCommand: __setupParentChildStdout started
    2017-08-01 14:56:26 141.225 12329 NXSERVER NXPipeCreate(FD#13, FD#14, 0) returned ‘1’
    2017-08-01 14:56:26 141.302 12329 NXSERVER NXRunCommand: open FD#13 in SCALAR(0x3e2acb0)
    2017-08-01 14:56:26 141.414 12329 NXSERVER NXOpen FD#16 – file /usr/NX/var/log/nxerror.log with mode 1089 and permissions 384 from Common::NXRunCommand::__setupParentChildStderr.
    2017-08-01 14:56:26 141.498 12329 NXSERVER NXRunCommand: getChildStdin return 11
    2017-08-01 14:56:26 141.568 12329 NXSERVER Descriptors set. Child :11, 14, 16. Parent 12, 13.
    2017-08-01 14:56:26 141.633 12329 NXSERVER NXRunCommand: getChildStdin return 11
    2017-08-01 14:56:26 141.712 12329 NXSERVER nxProcessCreate: ‘/usr/NX/bin/nxexec’ ‘/usr/NX/bin/nxexec /usr/NX/bin/nxexec –auth’ ” ’11’ ’14’ ’16’ ‘101’
    2017-08-01 14:56:26 143.169 12329 NXSERVER Added ‘12341/12341’ to children list.
    2017-08-01 14:56:26 143.531 12329 NXSERVER NXRunCommand: Closing ChildStdin
    2017-08-01 14:56:26 143.608 12329 NXSERVER NXRunCommand: getChildStdin return 11
    2017-08-01 14:56:26 143.710 12329 NXSERVER NXClose FD#11 from Common::NXRunCommand::closeChildDescriptors.
    2017-08-01 14:56:26 143.806 12329 NXSERVER NXRunCommand: Closing ChildStdout
    2017-08-01 14:56:26 143.881 12329 NXSERVER NXClose FD#14 from Common::NXRunCommand::closeChildDescriptors.
    2017-08-01 14:56:26 143.954 12329 NXSERVER NXRunCommand: Closing ChildStderr
    2017-08-01 14:56:26 144.028 12329 NXSERVER NXClose FD#16 from Common::NXRunCommand::closeChildDescriptors.
    2017-08-01 14:56:26 144.122 12329 NXSERVER NXRunCommand: child descriptors closed.
    2017-08-01 14:56:26 144.203 12329 NXSERVER NXRunCommand: saving pid in SCALAR(0x3e2acf0)
    2017-08-01 14:56:26 144.376 12329 NXSERVER NXRunCommand: running in background.
    2017-08-01 14:56:26 144.478 12329 NXSERVER The running nxexec pid is: 12341
    2017-08-01 14:56:26 144.556 12329 NXSERVER The running nxexec in/out/err 12/13/
    2017-08-01 14:56:26 144.741 12329 NXSERVER NXParser: adding handle ‘6’ FD#6 to the selector.
    2017-08-01 14:56:26 144.917 12329 NXSERVER NXParser: adding handle ’13’ FD#13 to the selector.

    #15398
    mlyn
    Contributor

    Hello,
    thank you for your information, we will solve this issue in next release.
    there is a trouble report with description of your issue:
    https://www.nomachine.com/TR08O07993

    #15848
    Britgirl
    Participant

    Please update your NoMachine installation to 5.3.12.

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

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