Nikitin Andrew wrote:
Oct 11 21:41:14
_ ftpd[5825]: FTP LOGIN REFUSED (*bad shell* or username in /Library/FTPServer/Configuration/ftpusers) FROM
___, max
in this file not have users and i add his in file but FTP not worked
I checked /Library/FTPServer/Configuration/ftpusers and it did not contain any of the usernames I had working with FTP just a few days ago, before it broke again. So I don't think that file really is used anymore (can anyone elighten us here?)
Another post about this suggested checking /etc/shells:
g5:~ root# cat /etc/shells
# List of acceptable shells for chpass(1).
# *Ftpd will not allow users to connect who are not using*
# *one of these shells.*
#/bin/bash
#/bin/csh
#/bin/ksh
#/bin/sh
#/bin/tcsh
#/bin/zsh
/dev/null
I understand this as if the user's shell in Workgroup Manager->advanced->shell is not set to /dev/null the FTP server will refuse login for that user. Your file may not look exactly the same, I have uncommented some shells (removing the #-sign in front). Check that your user has set a shell that do not have the #-sign in front of it in /etc/shells.
Just do a "sudo pico /etc/shells" in terminal, if you haven't used pico, see [http://www.savyon.com/ellen/pico.htm] for a quick introduction. Uncomment (remove the #-sign in front) /dev/null, adding it to the file if nessecary.
A small warning: *FTP is not secure* (plaintext passwords), therefore you should
not use accounts for FTP that can be accessed by any other service on your server, if someone gets a hold of a FTP password that has a shell account attatched, with no firewalling at the server, it is a big security concern. I reccomend using /dev/null as a shell for FTP-users.
Hope this helps, but I'm quite confused myself here...
Message was edited by: Nils Ellingsen