Author: el_kab0ng
Date: 06-08-03 20:41
That would probably be me. I've posted it a few times in the basic support forums, but it appears the last one I posted rolled off the archives.
In any event, do the following if you want to allow FTP to a user, but NOT a shell account. (As well as chroot'ing the user to lock them down to whatever home dir you set them up as so they can't bounce all over your box)
cp /sbin/no-login to /sbin/ftp-nologin
vi /etc/shells and add the /sbin/ftp-nologin to it.
add a user to your system using the /stand/sysinstall
when it comes to which shell to use, use /sbin/ftp-nologin
vi /etc/ftpchroot and add the newly created username to that file. (chances are ftpchroot doesn't exist on your system, that's ok, just create the file.)
Try ssh'ing in to your machine as them, it should drop you.
Next FTP in, and try to cd .., you should be restricted to the home directory you set up for them.
|
|