LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   vsftpd non-annoy ftp cannot upload, mkdir problem (http://www.linuxquestions.org/questions/linux-server-73/vsftpd-non-annoy-ftp-cannot-upload-mkdir-problem-549355/)

sleepyhomme 04-26-2007 09:46 PM

vsftpd non-annoy ftp cannot upload, mkdir problem
 
Good day, everyone.

These days I am configuring a VSFTPD for my office and I got some problems with it. I am using OpenSuSE 10.2 distribution.

Here goes my settings.
/etc/passwd :
Code:

ftp:x:40:49:FTP account:/srv/ftp:/bin/bash
ACL for ftp home (Have tried to chown fto ftp:ftp, and 777.)
Code:

drwxr-xr-x  4 root root 104 Apr 27 09:33 ftp/
Home directory for 2 virtual ftp users in /srv/ftp (There are 2 virtual users, aaa and bbb. When they login to vsftpd, they will be chroot to corresponding virtual home. Have tried to chown to ftp:ftp, and 777. Yet still cannot upload, mkdir)
Code:

drwxr-xr-x  2 root root  72 Apr 27 09:33 aaa/
drwxr-xr-x  2 root root  96 Apr 27 09:34 bbb/

2 virtual users (aaa, bbb) have been created and stored in vsftpd_login.db. No firewall is turned on and this FTP is for internal LAN use only. Now I can log in, CWD, list directory, download files successfuly but cannot mkdir and put (mput). The server always returns me 550 Permission Denied and I cannot find anything from the logs.

I have googled many posted threads and documents and I think the problem is not caused by directory ACL/owner, but the config file.

Any idea? Everyone. Many thanks!!!!

My vsftpd.conf is here
Code:

ftpd_banner="Welcome to AAABBB FTP service."
listen=YES
dirmessage_enable=NO
anonymous_enable=NO
pasv_enable=NO
port_enable=YES
connect_from_port_20=YES
write_enable=YES
dirlist_enable=YES
download_enable=YES

pam_service_name=vsftpd
         
syslog_enable=NO
log_ftp_protocol=YES
xferlog_enable=YES
vsftpd_log_file=/var/log/vsftpd.log
xferlog_std_format=YES
xferlog_file=/var/log/xferlog
dual_log_enable=YES

idle_session_timeout=60
data_connectiOn_timeout=60
   
ascii_upload_enable=NO
ascii_download_enable=NO
   
guest_enable=YES
guest_username=ftp
   
local_enable=YES
local_root=/srv/ftp/$USER
chroot_local_user=YES

user_sub_token=$USER


j-ray 04-27-2007 02:07 AM

drwxr-xr-x 2 root root 72 Apr 27 09:33 aaa/

this is writable for root only.

sudo chmod 0777 aaa/
sudo chmod 0777 bbb/

may do what you want

sleepyhomme 04-29-2007 11:39 AM

I have also figured it out last night at office!!
Many thanks!


All times are GMT -5. The time now is 02:13 AM.