'ls' doesn't work on net-2 in.ftpd for shadow passwords

'ls' doesn't work on net-2 in.ftpd for shadow passwords

Post by Bob Cross » Sat, 11 Sep 1993 00:49:09

Could somebody please point out what I'm doing wrong?  Ever since
I installed linux-0.99.10 and got net-2 working, the ftp daemon
has not allowed connections to my machine.  I found out that it
was because I was using shadow passwords and ftpd couldn't handle
that.  So, when the new net-2 faq came out and said to retrieve
the shadow-enabled programs, I got net2-shadow-bin.tgz and tried

I was finally able to connect, using ftp, to my machine and actually
log in.  But the 'ls' command wouldn't work.  The client and server
programs both thought everything had succeeded, but no listing of
files was produced.  The normal status messages were generated,

200 PORT command successful
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.

but no files were listed.  Ftping to any other machine worked
correctly.  And the 'nlist', 'bin', 'get', 'status', and 'rstatus'
commands all worked correctly when connected to my machine.

So I retrieved the ftpd source (ftpd.c says it's version 5.40 but
vers.c says it's version 5.60) and modified it to use shadow
passwords.  It has the same problem.

Can anybody tell me how to get an ftpd that works with shadow
passwords, either in binary form or the patches to the source?  I'd
really appreciate any help.

Bob Crosson


1. samba: 'net view \\server' works, 'net view' fails

From my WinXP client (using cygwin), I can browse the shares on a samba
server whose name I know.  But when I try to browse the whole network, I
get a logon failure and the smbd logs show that it's not seeing my

Browsing shares on \\server, from a different machine \\client (using
cygwin) while logged in as testuser:

$ net view '\\server'
Shared resources at \\server

Share name              Type   Used as  Comment
test                    Disk            
The command completed successfully.

But when I try to browse the whole network, I get a logon failure:

$ net view
System error 1326 has occurred.

Logon failure: unknown user name or bad password.

This is an authentication problem.  When I issue 'net view \\server' on the
client, the smbd log shows

[2003/11/02 06:55:03, 3] auth/auth.c:check_ntlm_password(216)
  check_ntlm_password:  Checking password for unmapped user [CLIENT

[2003/11/02 06:55:03, 3] auth/auth.c:check_ntlm_password(219)

But when I issue just 'net view', the smbd log instead shows

[2003/11/02 06:55:32, 3] auth/auth.c:check_ntlm_password(216)

with the new password interface
[2003/11/02 06:55:32, 3] auth/auth.c:check_ntlm_password(219)

So for some reason the 'net view \\server' request is processing my user
name, but 'net view' isn't.

Any ideas what could cause this?

To reply by email, change "deadspam.com" to "alumni.utexas.net"

2. Mounting 2nd CDROM

3. how to get ftpd 'ls' to work with anonymous ftp

4. ioctl(SIOCSARP): Invalid argument (pppd)

5. wu-ftpd "ls" doesn't work with anonymous?

6. Need *large* DMA area for Frame Grabber

7. 64k files in dir - 'ls' slow but 'strace ls' fast?

8. UnKnown Modules

9. 'ls -e' vs 'ls -l'

10. ping -g 'gateway-IP' 'host-IP' DOESN'T work!

11. 'ppp-on' Works, 'ifup ppp0' Doesn't

12. 'IRQ timeout' message and 'DMA disabled' with 'ls -l'

13. Re. bffcreate -X doesn't work Re: bffcreate -X Doesn't Work