In /etc/passwd fields are separated by a colon (":").
The first 4 lines are the same (account,password,UID,GID).
The 5th field (GECOS) is optional and ignored.
The 6th field is the user's home directory. In your first case it is empty, which is why you get the message "No directory, logging in with HOME=/.". In the second case it is "/" so there's no message then. But in both cases the HOME dir becomes /.
The 7th field is the program run at login, normally the shell. In both cases it is /bin/false, although I am unsure if the first is correct as the leading "/" is missing. Try adding it.
For information, this is my /etc/passwd on a Slackware 10.2 system:
Code:
root:x:0:0::/root:/bin/bash
bin:x:1:1:bin:/bin:
daemon:x:2:2:daemon:/sbin:
adm:x:3:4:adm:/var/log:
lp:x:4:7:lp:/var/spool/lpd:
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/:
news:x:9:13:news:/usr/lib/news:
uucp:x:10:14:uucp:/var/spool/uucppublic:
operator:x:11:0:operator:/root:/bin/bash
games:x:12:100:games:/usr/games:
ftp:x:14:50::/home/ftp:
smmsp:x:25:25:smmsp:/var/spool/clientmqueue:
mysql:x:27:27:MySQL:/var/lib/mysql:/bin/bash
rpc:x:32:32:RPC portmap user:/:/bin/false
sshd:x:33:33:sshd:/:
gdm:x:42:42:GDM:/var/state/gdm:/bin/bash
pop:x:90:90:POP:/:
nobody:x:99:99:nobody:/:
pu:x:1000:1000:,,,:/home/pu:/bin/bash
sy:x:1001:100:,,,:/home/sy:/bin/bash
clamav:x:1004:1004::/home/clamav: