LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 04-26-2007, 10:46 PM   #1
sleepyhomme
LQ Newbie
 
Registered: Jan 2006
Posts: 28

Rep: Reputation: 15
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

Last edited by sleepyhomme; 04-26-2007 at 11:14 PM.
 
Old 04-27-2007, 03:07 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,456

Rep: Reputation: 104Reputation: 104
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
 
Old 04-29-2007, 12:39 PM   #3
sleepyhomme
LQ Newbie
 
Registered: Jan 2006
Posts: 28

Original Poster
Rep: Reputation: 15
I have also figured it out last night at office!!
Many thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd ftp problem kehkok Linux - Networking 1 09-19-2006 10:20 AM
vsftpd upload problem jhod22 Linux - Software 0 04-15-2006 09:38 AM
FTP Problem (VSFTPD) williew Linux - Software 0 01-01-2005 11:15 AM
FTP upload problem: Error 550 Access Denied andrewstr Linux - Networking 0 12-17-2003 02:19 PM
Anonymous upload with vsftpd 1.1.0 Jesus0190 Linux - Software 0 01-04-2003 06:40 PM


All times are GMT -5. The time now is 12:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration