On Sun, Oct 06, 2002 at 10:30:50PM +0200, Niels Möller wrote:
lshd is a little paranoid, and it doesn't allow logins to accounts with no passwd-field in the paswd database (an empty password, as generated by crypt("salt", ""), should work, though). See the comment before the do_lookup_user function in unix_user.c for the rules lshd use when reading the user database.
Ok, empty passwords was just for testing, long term I would be satisfied if it worked at all :^)
An ordinary user with a real password is the normal case, and that should certainly work. How is your system set up? Do you have a plain /etc/passwd file with encrypted passwords in, or do you use shadow passwords? Is PAM involved in any way?
It's a self made system, so it could easily be that I forgot something. Shadow is used, PAM not. Here are the relevant files:
/etc/passwd: root:x:0:0:root:/:/bin/sh custom:x:500:100:Rayonic Custom User:/home:/bin/sh
/etc/shadow: root:SPoFKYqe5xgJc:0:0:99999:7::: custom:zu.hbJ3nhIfqk:0:0:99999:7:::
/etc # ls -l passwd shadow -rw-r--r-- 1 root root 77 Oct 5 2002 passwd -rw-r----- 1 root root 70 Jan 1 00:01 shadow
Shouldn't that be correct? What else do I need?
Robert