LinuxQuestions.org
Register a domain and help support LQ
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 01-07-2010, 05:45 PM   #1
windom
LQ Newbie
 
Registered: Dec 2009
Posts: 7

Rep: Reputation: 0
ProFTPd 550 error


So, I have proftpd @ Ubuntu 9.04 server. It authenticates users via Auth file, e.g. those are "FTP only" users, not real linux users. Each of them has assigned home dir in the same auth file. They also get Chrooted into it, e.g. default dir is ~ in proftpd.conf

They can connect and download files successfully, however, they cannot upload anything or create directory: 550 permission denied error.

When I login via ssh and change user to proftpd user, I can create directories in that particular place, so I guess it's not Linux permissions problem? Or is it?

/var/log/daemon.log is the place where proftpd stores its logs, but I cannot find anything relevant there
 
Old 01-07-2010, 07:34 PM   #2
1jnike
Member
 
Registered: Jan 2006
Location: UK
Distribution: Fedora,Mandriva,Debian,Suse,Solaris
Posts: 135

Rep: Reputation: 17
Post

Hi windom,


This is the upload line that worked for me:

CODE
upload class=anonusers /export/ftp /pub yes ftp other 0440 nodirs

Note: dependant on where ftp home directory is placed (this is using solaris)

I hope this is useful.
 
Old 01-08-2010, 05:40 PM   #3
windom
LQ Newbie
 
Registered: Dec 2009
Posts: 7

Original Poster
Rep: Reputation: 0
I'm sorry for dumb question but how exactly this line is used? Shall I put it to proftpd.conf?
 
Old 01-09-2010, 01:59 PM   #4
1jnike
Member
 
Registered: Jan 2006
Location: UK
Distribution: Fedora,Mandriva,Debian,Suse,Solaris
Posts: 135

Rep: Reputation: 17
Post

Hi windom,

Here is an example of the ftpacess file:

<snip>
# ident "@(#)ftpaccess 1.2 03/05/14 SMI"
#
# FTP server configuration file, see ftpaccess(4).
#

class realusers real *
class guestusers guest *
class anonusers anonymous *

loginfails 3
passwd-check trivial warn
private no
shutdown /etc/ftpd/shutdown.msg
# email user@hostname
# guestuser username
# rhostlookup no

keepalive yes
recvbuf 65536 real,guest,anonymous
sendbuf 65536 real,guest,anonymous
# flush-wait no anonymous
# passive ports 0.0.0.0/0 32768 65535
# timeout data 600
# timeout idle 300

banner /etc/ftpd/banner.msg
greeting brief
message /etc/ftpd/welcome.msg login
message .message cwd=*
readme README* login
readme README* cwd=*
# quota-info *

chmod no anonymous
delete no anonymous
overwrite no anonymous
rename no anonymous
umask no anonymous

compress yes realusers guestusers anonusers
tar yes realusers guestusers anonusers

path-filter guest,anonymous /etc/ftpd/filename.msg ^[[:alnum:]._-]*$ ^[.-]

noretrieve relative class=anonusers /
allow-retrieve relative class=anonusers /pub

upload class=anonusers * * no nodirs
# upload class=anonusers * /incoming yes ftpadm ftpadm 0440 nodirs

# log commands real,guest,anonymous
# log security real,guest,anonymous
# log transfers real,guest,anonymous inbound,outbound
# xferlog format %T %Xt %R %Xn %XP %Xy %Xf %Xd %Xm %U ftp %Xa %u %Xc %Xs %Xr

# limit-time anonymous 30
# limit anonusers 10 Wk0730-1800 /etc/ftpd/toomany.msg
# limit anonusers 50 SaSu|Any1800-0730 /etc/ftpd/toomany.msg

<snip end>

The highlighted line was enabled by removing the hash from in front upload, in bold print.(using ftp in Solaris)

However the link below is more than helpful using proftp.

http://www.proftpd.org/localsite/Use...pp-config.html


I hope this is of help.
 
  


Reply

Tags
proftpd


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
Proftpd Virtual Users Error 550 No such file or directory : serenissimus Linux - Server 0 11-23-2008 04:59 AM
ProFTPd - Change proftpd.conf location ('not found' error) varney Linux - Newbie 1 02-22-2008 02:51 AM
proftpd 550 gabsik Linux - Networking 1 05-06-2006 12:18 AM
weired ProFtpd error: 550 Overwrite permission denied !! apache Linux - Software 1 07-23-2004 07:21 AM
Vsftpd help- 550 error hda Linux - Networking 1 10-15-2003 02:26 PM


All times are GMT -5. The time now is 11:39 PM.

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