Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 22nd May 2008, 10:05
HugofromBOSS HugofromBOSS is offline
Junior Member
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Proftpd LIST permission Problem


I followed the following tutorial on the site.


Everything has gone well so far however, when I try to login to the FTP server It logs me in fine be stops on LISTING the directory folders and then stops, then returns the error "Permission Denied"

Heres the output:

HTML Code:
[CMDLINE]  -acceptNewKey -pr -gui 1969334  -v -fast -id 366091383 -batch -pw ****** -ls -l "egor" -host "" -rdir "/"
/*Client 366091383 attached*/
[OUT_19316] Syncronization Level: 0
[OUT_19316] Passive mode: OFF
[OUT_19316] 220 FTP Server ready.
[OUT_19316] USER egor
[OUT_19316] 331 Password required for egor
[OUT_19316] PASS (want to know) :-P
[OUT_19316] 230 User egor logged in.
[OUT_19316] SYST
[OUT_19316] 215 UNIX Type: L8
<Autodetect server type.....UNIX>
[OUT_19316] REST 100
[OUT_19316] 501 REST: Resuming transfers not allowed in ASCII mode
[OUT_19316] This site cannot resume broken downloads/uploads
[OUT_19316] CWD /
[OUT_19316] 250 CWD command successful
[OUT_19316] PWD
[OUT_19316] 257 "/" is the current directory
[OUT_19316] Logged in
[OUT_19316] TYPE A
[OUT_19316] 200 Type set to A
[OUT_19316] PORT 192,168,2,151,211,18
[OUT_19316] 200 PORT command successful
[OUT_19316] LIST
[ERR_19316] !29: Permission denied
My Config:

HTML Code:
# This is the ProFTPD configuration file

ServerName                      "ProFTPD server"
ServerIdent                     on "FTP Server ready."
ServerAdmin                     root@localhost
ServerType                      standalone
#ServerType                     inetd
DefaultServer                   on
AccessGrantMsg                  "User %u logged in."
#DisplayConnect                 /etc/ftpissue
#DisplayLogin                   /etc/ftpmotd
#DisplayGoAway                  /etc/ftpgoaway
DeferWelcome                    off

# Use this to excude users from the chroot
# DefaultRoot                   ~ !adm

AllowOverwrite on
UseFtpUsers on
ShowSymlinks on
AllowOverwrite on
DefaultRoot ~
DefaultChdir ~
DelayEngine off

# Use pam to authenticate (default) and be authoritative
#AuthPAMConfig                  proftpd
#AuthOrder                      mod_auth_pam.c* mod_auth_unix.c

# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups                    off
UseReverseDNS                   off

# Port 21 is the standard FTP port.
Port                            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# Default to show dot files in directory listings
ListOptions                     "-a"

# See Configuration.html for these (here are the default values)
#MultilineRFC2228               off
#RootLogin                      off
#LoginPasswordPrompt            on
#MaxLoginAttempts               3
#MaxClientsPerHost              none
#AllowForeignAddress            off     # For FXP

# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart            on
AllowStoreRestart               on

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    20

# Set the user and group that the server normally runs at.
User                            ftpuser
Group                           ftpgroup

# Disable sendfile by default since it breaks displaying the download speeds in
# ftptop and ftpwho
UseSendfile                     no

# This is where we want to put the pid file
ScoreboardFile                  /var/run/proftpd.score

# Normally, we want users to do a few things.
  AllowOverwrite                yes
# Define the log formats
LogFormat                       default "%h %l %u %t \"%r\" %s %b"
LogFormat                       auth    "%v [%P] %h %t \"%r\" %s"

# SQL authentication Dynamic Shared Object (DSO) loading
# See README.DSO and howto/DSO.html for more details.

#<IfModule mod_auth_pam.c>
#AuthPAM on

LoadModule mod_quotatab.c

<IfModule mod_dso.c>
   LoadModule mod_sql.c
   LoadModule mod_sql_mysql.c
#   LoadModule mod_sql_postgres.c

# The passwords in MySQL are encrypted using CRYPT
SQLAuthTypes            Plaintext CRYPT
SQLAuthenticate         users* groups*

# used to connect to the database
# databasename@host database_user user_password
SQLConnectInfo  #######@######## ##### #########################

# Here we tell ProFTPd the names of the database columns in the "usertable"
# we want it to interact with. Match the names with those in the db
SQLUserInfo     servers ftp_username ftp_password uid gid homedir shell
#SQLUserInfo     ftpuser userid passwd uid gid homedir shell

# Here we tell ProFTPd the names of the database columns in the "grouptable"
# we want it to interact with. Again the names match with those in the db
SQLGroupInfo    ftpgroup groupname gid members

# set min UID and GID - otherwise these are 999 each
SQLMinID        500

# create a user's home directory on demand if it doesn't exist
SQLHomedirOnDemand on

# Update count every time user logs in
SQLLog PASS updatecount
SQLNamedQuery updatecount UPDATE "count=count+1, accessed=now() WHERE userid='%u'" ftpuser

# Update modified everytime user uploads or deletes a file
SQLLog  STOR,DELE modified
SQLNamedQuery modified UPDATE "modified=now() WHERE userid='%u'" ftpuser

# User quotas
# ===========

QuotaEngine on
QuotaDirectoryTally on
QuotaDisplayUnits Mb
QuotaShowQuotas on

SQLNamedQuery get-quota-limit SELECT "name, quota_type, per_session, limit_type, bytes_in_avail, bytes_out_avail, bytes_xfer_avail, files_in_avail, files_out_avail, files_xfer_avail $

SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used, bytes_out_used, bytes_xfer_used, files_in_used, files_out_used, files_xfer_used FROM ftpquotatallies WHERE name$

SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files$

SQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4}, %{5}, %{6}, %{7}" ftpquotatallies

SQLNamedQuery gettally  SELECT "ROUND((bytes_in_used/1048576),2) FROM ftpquotatallies WHERE name='%u'"
SQLNamedQuery getlimit  SELECT "ROUND((bytes_in_avail/1048576),2) FROM ftpquotalimits WHERE name='%u'"
SQLNamedQuery getfree   SELECT "ROUND(((ftpquotalimits.bytes_in_avail-ftpquotatallies.bytes_in_used)/1048576),2) FROM ftpquotalimits,ftpquotatallies WHERE ftpquotalimits.name = '%u' $

SQLShowInfo   LIST    "226" "Used %{gettally}MB from %{getlimit}MB. You have %{getfree}MB available space."

QuotaLimitTable sql:/get-quota-limit
QuotaTallyTable sql:/get-quota-tally/update-quota-tally/insert-quota-tally

RootLogin off
RequireValidShell off

SQLLogFile /var/log/proftpd_SQL.log
The folder has all the permissions:

Thanks In advance!

Last edited by HugofromBOSS; 11th October 2010 at 13:40.
Reply With Quote
Sponsored Links
Old 23rd May 2008, 12:00
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts

What's the output of
ls -la /home/svr00004
Did you try both active and passive transfers in your FTP client?
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 23rd May 2008, 13:36
HugofromBOSS HugofromBOSS is offline
Junior Member
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Its ok I fixed it my FTP client was crap ... It works fine over putty etc. Thanks!
Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Apache Ownership cybereatl General 2 26th March 2008 12:25
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
553 "Permission denied on server" ProFTPD 553 Permission denied on server slow_boy Server Operation 15 9th June 2006 12:36
proftpd login problem with list Cirox Installation/Configuration 3 19th March 2006 00:12

All times are GMT +2. The time now is 13:11.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.