On Thu, Jan 29, 2009 at 05:36:10PM -0800, Dave Peters wrote: > I have setup vsftpd on redhat 5 and have setup the following on > /etc/passwd to lock the user directory. Hopefully you mean RHEL 5.x, not Red Hat 5, which was released in about 1997 or so... ;-) > I created user and edit /etc/passwd > useradd -d /home/ftp/ftpuser/ -s /dev/null ftpuser > /dev/null 2>&1 It's been a very long while since I was familiar with vsftpd (or any FTP server), but I believe this will not work. Many FTP servers will not allow a login from a user who does not have a valid shell listed in /etc/shells -- I'm betting that's what's going on here. It's customary to set the user's shell to /sbin/nologin for this... On RH-like systems it should already be in /etc/shells, and will not allow a user to log in and get a shell via "normal" means. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.