public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] nxserver-freenx - user nx not allowed because account is locked
  @ 2009-03-19 15:44 99%   ` Joseph
  0 siblings, 0 replies; 1+ results
From: Joseph @ 2009-03-19 15:44 UTC (permalink / raw
  To: gentoo-user

On 03/19/09 10:03, Paul Hartman wrote:
[snip]
>> log/messages prints:
>> user nx not allowed because account is locked
>>
>> How to unlock the account?
>
>passwd -u nx
>
>I had to do the same thing.
>
>Paul


Yes, I tried it already:

passwd -u nx
passwd: unlocking the user would result in a passwordless account.
You should set password with usermod -p to unlock this user account.
Password changed.

What do you do next?

When I try to run again:
nxsetup --install --setup-nomachine-key --clean --purge

I get:
...
Setting up /var/log/nxserver.log ...done
Setting up special user "nx" ...passwd: unlocking the user would result in a
passwordless account.
You should set a password with usermod -p to unlock this user account.
Password changed.
done.
...
----> Testing your nxserver connection ...
Permission denied (publickey,keyboard-interactive).
Fatal error: Could not connect to NX Server.

Please check your ssh setup:

The following are _examples_ of what you might need to check.

         - Make sure "nx" is one of the AllowUsers in sshd_config.
     (or that the line is outcommented/not there)
         - Make sure "nx" is one of the AllowGroups in sshd_config.
     (or that the line is outcommented/not there)
         - Make sure your sshd allows public key authentication.
         - Make sure your sshd is really running on port 22.
         - Make sure your sshd_config AuthorizedKeysFile in sshd_config is set
to authorized_keys2.
     (this should be a filename not a pathname+filename)
   - Make sure you allow ssh on localhost, this could come from some
     restriction of:
       -the tcp wrapper. Then add in /etc/hosts.allow: ALL:localhost
       -the iptables. add to it:
          $ iptables -A INPUT  -i lo -j ACCEPT
          $ iptables -A OUTPUT -o lo -j ACCEPT


So at this point I'm back to square one in log/messages I get:
User nx not allowed because account is locked

-- 
#Joseph
GPG KeyID: ED0E1FB7



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2009-03-19  4:35     [gentoo-user] nxserver-freenx - user nx not allowed because account is locked Joseph
2009-03-19 15:03     ` Paul Hartman
2009-03-19 15:44 99%   ` Joseph

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox