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 <sylvain.sab...@free.fr> 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.

> `# 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 ...]

-- 
Darren Tucker (dtucker at dtucker.net)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Reply via email to