Re: vsftp question

Philipp Schulte <[email protected]>
Newsgroups gmane.comp.security.linux
Message-ID <[email protected]>
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?

vsftpd checks if the users have a valid shell. Those are defined in
/etc/shells. Add "/bin/false" to this list and everything should be
fine. Regards,
Philipp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.