Re: vsftpd setup question
- From: "Nico Kadel-Garcia" <nkadel@xxxxxxxxxxx>
- Date: Thu, 23 Feb 2006 06:54:32 -0500
Frank wrote:
Hello,
I try to config vsftpd according to my requirements
- one scenario is OK and the other fails.
May be it is best to simplify a little bit:
- it is OK with "user2"
- it fails with "user1"
What I see is that user2 has "/bin/sh" and
user1 has "/bin/false" in /etc/passwd
Does vsftpd really need a working shell ?
(the example is simplified; in reality I
want to use a custom program to start instead of /bin/sh
when login via ftp or ssh.
Not when I last used it. But I used a rather different layout: not user home
directories, but directories under /var/ftp/.
the wrong case
===============
ftp -vn 192.168.30.31
Connected to 192.168.30.31.
220 (vsFTPd 2.0.3)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
ftp> user user1 CHGME.1
331 Please specify the password.
500 OOPS: priv_sock_get_result in privsock.c
Login failed.
the OK case
===========
ftp -vn 192.168.30.31
Connected to 192.168.30.31.
220 (vsFTPd 2.0.3)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
ftp> user user2 CHGME.1
331 Please specify the password.
230 Login successful.
my vsftpd config file
=====================
local_enable=YES
write_enable=YES
nopriv_user=vsftpdnobody
anonymous_enable=NO
intesting lines from /etc/passwd
================================
user1:x:483:483:user1:/home/user1:/bin/false
user2:x:482:482:user2:/home/user2:/bin/sh
vsftpdnobody:x:1003:1003:vsftpd nopriv_user:/var/empty:/bin/false
.
- References:
- vsftpd setup question
- From: Frank
- vsftpd setup question
- Prev by Date: Re: Slackware Server ISP change
- Next by Date: Problem with udev
- Previous by thread: vsftpd setup question
- Next by thread: Re: vsftpd setup question
- Index(es):
Relevant Pages
|