Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Focus-Linux
[Top] [All Lists]

Re: vsftp question

Subject: Re: vsftp question
Date: Mon, 4 Apr 2005 18:17:43 +0200
On Fri, Apr 01, 2005 at 11:41:28PM -0400, Marcus Merrin wrote:
The recent discussion on Apache+ftp+php etc prompted me to ask a
related question.  I have a similar setup with "student" accounts each
with a homedir containing a public_html directory.  Each user has a
valid entry in the passwd file and are each chrooted to their home dir
by VSFTP.  However, I don't want them to gain terminal access at all.
Under wu-ftp there was no problem.  You just give them /bin/false or
/bin/nologin as their login  shell in the passwd file.  However if you
do this with vsftp, it prevents them from ftp-ing into their home
also.  How do I grant FTP but not shell access?

Marcus

See vsftpd.conf(5), under 'check_shell'; if you have a PAM-enabled
vsftpd, see /etc/pam.d/vsftpd or something similar.

(Run ldd /usr/sbin/vsftpd to check whether or not your vsftpd is
PAM-enabled; if there is a libpam.so (.something, possibly), it is.)

                Joachim

<Prev in Thread] Current Thread [Next in Thread>