Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2021 13:39:06 -0800
From:      David Christensen <dpchrist@holgerdanske.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: user account disappeared
Message-ID:  <3a853381-8da5-d520-ce6b-4e193e47396c@holgerdanske.com>
In-Reply-To: <YDqquH5y8wM4F7uO@lordcow.org>
References:  <YDqquH5y8wM4F7uO@lordcow.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/27/21 12:25 PM, Gareth de Vaux wrote:
> Hi all, one of my users in a jail has mysteriously half disappeared. I've renamed the user to 'lostuser', the password hash, and the process it's running to protect privacy below:
> 
> I suddenly can't log in over ssh:
> 
> sshd[22485]: Invalid user lostuser from XYZ
> 
> # su - lostuser
> su: unknown login: lostuser
> 
> # ls -ld /home/lostuser
> drwx------  8 1012  users  18 Jan 23 11:19 /home/lostuser
> 
> $HOME still exists but only showing the userid.
> 
> # egrep "1012|lostuser" /etc/passwd
> lostuser:*:1012:1000:User &:/home/lostuser:/usr/local/bin/bash
> 
> # egrep "1012|lostuser" /etc/master.passwd
> lostuser:$6$9xxxxx/:1012:1000::0:0:User &:/home/lostuser:/usr/local/bin/bash
> 
> Entries are still in /etc/*passwd ?

Are you using NIS, LDAP, Kerberos, etc.?


Is authentication working for root on the console?  Via su(1)?  Via 
local ssh(1)?  Via network ssh(1)?


Is authentication working for lostuser on the console?  Via su(1)?  Via 
local ssh(1)?  Via network ssh(1)?


Is authentication working for other accounts on the console?  Via su(1)? 
  Via local ssh(1)?  Via network ssh(1)?


David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3a853381-8da5-d520-ce6b-4e193e47396c>