Problem solved, thank you !
Just removing the password asterisk using vipw was enough :
$ grep media /etc/passwd
media::2000:2000::/home/media:/sbin/nologin
and I am now able to log in, from the local network
(still need to open my ISP's box port and confirm that it
works remotely)
Le 2024-03-26 13:26, Darren Tucker a écrit :
You could run sshd in debug mode to be sure ("/usr/sbin/sshd -ddd -p
2222", then connect with "sftp -oport=2222"), but...
On Tue, 26 Mar 2024 at 22:10, Sylvain Saboua <[email protected]>
wrote:
[...]
# useradd -g media -s /sbin/nologin -u 2000 -v media
Unless /sbin/nologin is in /etc/shells (which it probably shouldn't
be), that will probably prevent the login. I'd suggest /bin/true for
both the user and in /etc/shells.
/bin/true is not in the /etc/shells file on my system.
Did you suggest I should add it ?
`# passwd media') does not work either. What am I doing wrong ?
What do you mean by "does not work"? When I've done something similar
in the past I've edited the passwd file with vipw and removed the
hashed password value leaving nothing in the password field, ie
someuser::1001:1001: [etc ...]
I meant that I could still not login sftp://media@lap after setting
a password using the passwd command.
--
Sylvain Saboua
www.saboua.xyz