Current time: 11-27-2024, 06:16 AM Hello There, Guest! (LoginRegister)


Post Reply 
proftpd dir list field
Author Message
Outlaw Offline
Junior Member
*

Posts: 41
Joined: Oct 2008
Reputation: 0
Post: #1
proftpd dir list field
When i connect to ftp i have:

Code:
venturi.pl (83.23.152.90[83.23.152.90]) - PathDenyFilter
ssspl (83.23.152.90[83.23.152.90]) - CURRENT-CLIENTS
sss.pl (83.23.152.90[83.23.152.90]) - USER
ss.pl (83.23.152.90[83.23.152.90]) - USER strona@outlaw.one.pl: Login successful.
s.pl (83.23.152.90[83.23.152.90]) - Preparing to chroot to directory '/var/www/virtual/outlaw.one.pl'
s.pl (83.23.152.90[83.23.152.90]) - Environment successfully chroot()ed.
spl (83.23.152.90[83.23.152.90]) - in dir_check_full(): path = '/', fullpath = '/var/www/virtual/outlaw.one.pl/'.
spl (83.23.152.90[83.23.152.90]) - dispatching POST_CMD command 'PASS (hidden)' to mod_sql
spl (83.23.152.90[83.23.152.90]) - dispatching POST_CMD command 'PASS (hidden)' to mod_cap
s.pl (83.23.152.90[83.23.152.90]) - mod_cap/1.0: capabilities '= cap_net_bind_service+ep cap_mac_admin+i'
s.pl (83.23.152.90[83.23.152.90]) - dispatching POST_CMD command 'PASS (hidden)' to mod_quotatab
spl (83.23.152.90[83.23.152.90]) - dispatching POST_CMD command 'PASS (hidden)' to mod_tls
spl (83.23.152.90[83.23.152.90]) - dispatching POST_CMD command 'PASS (hidden)' to mod_ratio

my proftpd.conf:


Code:
#<IfModule mod_dso.c>
#  LoadModule mod_sql.c
#  LoadModule mod_sql_mysql.c
#  LoadModule mod_quotatab.c
#  LoadModule mod_quotatab_file.c
#  LoadModule mod_quotatab_sql.c
#</IfModule>

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6                    off

ServerName                 "vsss"
ServerType                 standalone
DeferWelcome               off

MultilineRFC2228           on
DefaultServer              on
ShowSymlinks               on

AllowOverwrite             on
UseReverseDNS              off
IdentLookups               off
AllowStoreRestart          on
AllowForeignAddress        on

LogFormat                  traff "%b %u"

TimeoutLogin               120
TimeoutNoTransfer          600
TimeoutStalled             600
TimeoutIdle                1200

DisplayLogin               welcome.msg
#DisplayChdir          message

ListOptions                "-l"
#LsDefaultOptions           "-l"

DenyFilter                 \*.*/

DefaultRoot                ~

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
# PersistentPasswd         off

# Port 21 is the standard FTP port.
Port                       21

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
#PassivePorts               49152 65534

# 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               30

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

# Normally, we want files to be overwriteable.

<Directory /*>
  # Umask 022 is a good standard umask to prevent new files and dirs
  # (second parm) from being group and world writable.
  Umask                    022  022
  # Normally, we want files to be overwriteable.
  AllowOverwrite           on
  HideNoAccess             on
</Directory>

<Limit ALL>
  IgnoreHidden             on
</Limit>

# Be warned: use of this directive impacts CPU average load!
#
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
# UseSendFile               off

<Global>
  RootLogin                on
  TransferLog              /var/log/proftpd/xferlog
  ExtendedLog              /var/log/proftpd/ftp_traff.log read,write traff
PathDenyFilter           "\.quota$"
</Global>

#
# SSL via TLS
#
#<IfModule mod_tls.c>
#  TLSEngine                off                           # on for use of TLS
#  TLSLog                   /var/log/proftpd/ftp_ssl.log  # where to log to
#  TLSProtocol              SSLv23                        # SSLv23 or TLSv1
#  TLSOptions               NoCertRequest                 # either to request the certificate or not
#  TLSRSACertificateFile    /etc/proftpd/ssl.crt          # SSL certfile
#  TLSRSACertificateKeyFile /etc/proftpd/ssl.key          # SSL keyfile
#  TLSVerifyClient          off                           # client verification
#</IfModule>

#
# ISPCP Quota management;
#
<IfModule mod_quotatab.c>
  QuotaEngine              on
  QuotaShowQuotas          on
  QuotaDisplayUnits        Mb

  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 quotatallies 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}" quotatallies

  QuotaLock                /var/run/proftpd/tally.lock
  QuotaLimitTable          sql:/get-quota-limit
  QuotaTallyTable          sql:/get-quota-tally/update-quota-tally/insert-quota-tally
</IfModule>

<IfModule mod_ratio.c>
  Ratios                   on
</IfModule>

# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default.
<IfModule mod_delay.c>
  DelayEngine              on
</IfModule>

<IfModule mod_ctrls.c>
  ControlsEngine           on
  ControlsMaxClients       2
  ControlsLog              /var/log/proftpd/controls.log
  ControlsInterval         5
  ControlsSocket           /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine      on
</IfModule>

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

# ispCP SQL Managment
SQLBackend                 mysql
SQLAuthTypes               Crypt
SQLAuthenticate            on
SQLConnectInfo             ispcp@localhost vftp vftp32
SQLUserInfo                ftp_users userid passwd uid gid homedir shell
SQLGroupInfo               ftp_group groupname gid members
SQLMinUserUID              2000
SQLMinUserGID              2000

Include /etc/proftpd/ispcp/*

proftpd -vv

Code:
root@venturi:/tmp# proftpd -vv
- ProFTPD Version: 1.3.1 (stable)
-   Scoreboard Version: 01040002
-   Built: pon, 8 cze 2009, 23:01:15 CEST
-     Module: mod_core.c
-     Module: mod_xfer.c
-     Module: mod_auth_unix.c
-     Module: mod_auth_file/0.8.3
-     Module: mod_auth.c
-     Module: mod_ls.c
-     Module: mod_log.c
-     Module: mod_site.c
-     Module: mod_delay/0.6
-     Module: mod_dso/0.4
-     Module: mod_readme.c
-     Module: mod_ratio.c
-     Module: mod_tls/2.1.2
-     Module: mod_wrap.c
-     Module: mod_ctrls_admin/0.9.5
-     Module: mod_auth_pam/1.0.1
-     Module: mod_sql/4.2.2
-     Module: mod_sql_mysql/4.0.7
-     Module: mod_quotatab/1.3.0
-     Module: mod_quotatab_sql.c
-     Module: mod_cap/1.0
-     Module: mod_ctrls/0.9.4

when i chose dir from www, dir not listing. It's some when i connected from client ....
help me?
06-09-2009 07:16 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: proftpd dir list field
I don´t really understand your problem!
Can you explain exactly what is wrong or "www" in your case ?

Greez BeNe
06-09-2009 04:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Outlaw Offline
Junior Member
*

Posts: 41
Joined: Oct 2008
Reputation: 0
Post: #3
RE: proftpd dir list field
www - when i login to user panel and added ftp account i want chose dir. Opened window and dir not listed.

or

when i connected form ftp client - login and password is correct but ftp client stoped post login and not listed dir and files.
06-09-2009 10:09 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: proftpd dir list field
Seeing that your IP belongs to an ADSL connection, the problem has probably something to do with passive FTP mode. Moreover, I think you missed a part of the proftpd debug log (there's no disconnection in there, nor any command processed after login)
06-09-2009 11:07 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Outlaw Offline
Junior Member
*

Posts: 41
Joined: Oct 2008
Reputation: 0
Post: #5
RE: proftpd dir list field
Now i login from local ip that is connected to this server and i have the some debug.

Code:
.pl (89.191.1xx.[89.191.1xx.3]) - in dir_check_full(): path = '/', fullpath = '/var/www/virtual/outlaw.one.pl/'.
pl (89.191.1xx.3[89.191.xx.3]) - dispatching POST_CMD command 'PASS (hidden)' to mod_sql
.pl (89.191.1xx.3[89.191.xx.3]) - dispatching POST_CMD command 'PASS (hidden)' to mod_cap
venturi.pl (89.191.1xx.3[89.191.1xx.3]) - mod_cap/1.0: capabilities '= cap_net_bind_service+ep cap_mac_admin+i'
pl (89.191.1xx.3[89.191.xx3]) - dispatching POST_CMD command 'PASS (hidden)' to mod_quotatab
.pl (89.191.1xx.3[89.191.1xx.3]) - dispatching POST_CMD command 'PASS (hidden)' to mod_tls
i.pl (89.191.1xx.3[89.191.1xxx.3]) - dispatching POST_CMD command 'PASS (hidden)' to mod_ratio
pl - scrubbing scoreboard
ri.pl - ROOT PRIVS at scoreboard.c:761
ri.pl - RELINQUISH PRIVS at scoreboard.c:763
ri.pl - ROOT PRIVS at scoreboard.c:791
i.pl - RELINQUISH PRIVS at scoreboard.c:822
06-09-2009 11:47 PM
Find all posts by this user Quote this message in a reply
Outlaw Offline
Junior Member
*

Posts: 41
Joined: Oct 2008
Reputation: 0
Post: #6
RE: proftpd dir list field
I look, when i have added ftp account with dir i have: htdocs/ does not exist
Which path is not correct in config?

when i click 'choose dir' i have:

"Can not open directory !
Please contact your administrator !"
(This post was last modified: 06-10-2009 03:10 AM by Outlaw.)
06-10-2009 02:37 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #7
RE: proftpd dir list field
This is another symptom for the exact same "unable to list directories through ftp" problem.

1. Does the "/var/www/virtual/outlaw.one.pl/" folder exist?

2. Can you list the files using a regular ftp client (like filezilla) with passive mode disabled?

3. Is this happening to all your domains (try to add a new one and see if it works)? If not, it may be a permissions problem, so check that the files and directories are owned by the correct user.

4. Can't you get any further log information? It is really weird that there's no LIST command shown in there (increase the debug level if needed).
06-10-2009 07:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Outlaw Offline
Junior Member
*

Posts: 41
Joined: Oct 2008
Reputation: 0
Post: #8
RE: proftpd dir list field
(06-10-2009 07:46 AM)kilburn Wrote:  This is another symptom for the exact same "unable to list directories through ftp" problem.

1. Does the "/var/www/virtual/outlaw.one.pl/" folder exist?

2. Can you list the files using a regular ftp client (like filezilla) with passive mode disabled?

3. Is this happening to all your domains (try to add a new one and see if it works)? If not, it may be a permissions problem, so check that the files and directories are owned by the correct user.

4. Can't you get any further log information? It is really weird that there's no LIST command shown in there (increase the debug level if needed).

1. Yes
2. yes, with and without
3. Yes, for all (old and new added)
4. i probe -d9 but it's this some.
06-14-2009 10:04 PM
Find all posts by this user Quote this message in a reply
MasterTH Offline
Member
***

Posts: 570
Joined: Feb 2009
Reputation: 4
Post: #9
RE: proftpd dir list field
the permissions of the folder are incorrect set the permissions to 755 or something higher. you have to check the owner too
06-14-2009 10:14 PM
Find all posts by this user Quote this message in a reply
Outlaw Offline
Junior Member
*

Posts: 41
Joined: Oct 2008
Reputation: 0
Post: #10
RE: proftpd dir list field
I trying diferent permission but this don't change anything (777). Actual see:

Code:
root@venturi:/var/www/virtual/outlaw.one.pl# ls -la
razem 48
drwxrwx--- 10 vu2014 apache 4096 2009-06-05 14:52 ./
drwxr-xr-x 11 vu2000 apache 4096 2009-06-09 19:08 ../
drwxrwx---  2 vu2014 apache 4096 2009-04-03 23:42 backups/
drwxr-xr-x  2 vu2014 apache 4096 2009-04-03 23:42 cgi-bin/
drwxrwxr-x  3 vu2014 apache 4096 2009-04-03 23:42 errors/
drwxrwxr-x 18 vu2014 apache 4096 2009-06-03 17:57 htdocs/
-rw-r--r--  1 vu2014 apache   26 2009-06-05 14:52 .htgroup
-rw-r--r--  1 vu2014 apache   50 2009-06-05 14:52 .htpasswd
drwxrwx---  2 vu2014 apache 4096 2009-04-03 23:42 logs/
drwxrwx---  2 vu2014 apache 4096 2009-06-14 15:28 phptmp/
drwxr-xr-x  5 vu2014 apache 4096 2009-06-05 14:55 ukw/
drwxr-xr-x  5 vu2014 apache 4096 2009-04-11 12:14 wordpress/

in process i have:

Code:
vu2014     452  6.1  0.2   8444  4392 ?        R    14:00  16:44 proftpd: strona@outlaw.one.pl - 83.23.138.30: IDLE
vu2014     462  6.1  0.2   8444  4400 ?        R    14:01  16:40 proftpd: strona@outlaw.one.pl - 127.0.0.1: IDLE
vu2014    2518  5.8  0.2   8444  4388 ?        R    18:26   0:24 proftpd: strona@outlaw.one.pl - 83.23.138.30: IDLE
vu2020    5464  7.0  0.2   8444  4400 ?        R    Jun09 505:04 proftpd: tmp_4a2e9bf43f234@lili-art.pl - 127.0.0.1: IDLE
vu2020    5560  7.0  0.2   8444  4400 ?        R    Jun09 502:13 proftpd: tmp_4a2e9ca894b3e@lili-art.pl - 127.0.0.1: IDLE
vu2020    5607  7.0  0.2   8444  4404 ?        R    Jun09 500:46 proftpd: tmp_4a2e9d5d08cf6@lili-art.pl - 127.0.0.1: IDLE
vu2020    5617  7.0  0.2   8444  4400 ?        R    Jun09 500:39 proftpd: strona@lili-art.pl - 83.23.1.157: IDLE
vu2020    5716  7.0  0.2   8444  4424 ?        R    Jun09 500:02 proftpd: tmp_4a2e9e1266510@lili-art.pl - 127.0.0.1: IDLE
vu2020    5754  7.0  0.2   8444  4408 ?        R    Jun09 499:44 proftpd: strona@lili-art.pl - 83.23.1.157: IDLE
vu2020    5778  7.0  0.2   8444  4424 ?        R    Jun09 499:30 proftpd: tmp_4a2e9ec7017c6@lili-art.pl - 127.0.0.1: IDLE
vu2020    6979  6.9  0.2   8444  4420 ?        R    Jun09 490:46 proftpd: tmp_4a2eada0cb258@lili-art.pl - 127.0.0.1: IDLE
vu2014    6984  6.9  0.2   8444  4396 ?        R    Jun09 490:39 proftpd: strona@outlaw.one.pl - 83.23.1.157: IDLE
vu2020    7045  6.9  0.2   8444  4412 ?        R    Jun09 490:26 proftpd: tmp_4a2eae558af00@lili-art.pl - 127.0.0.1: IDLE
vu2020    7120  6.9  0.2   8444  4412 ?        R    Jun09 490:08 proftpd: tmp_4a2eaf0bd9cb7@lili-art.pl - 127.0.0.1: IDLE
vu2020    7178  6.9  0.2   8444  4420 ?        R    Jun09 489:53 proftpd: tmp_4a2eafc1812be@lili-art.pl - 127.0.0.1: IDLE
vu2020    7196  6.9  0.2   8444  4412 ?        R    Jun09 489:38 proftpd: tmp_4a2eb07679d8f@lili-art.pl - 127.0.0.1: IDLE
vu2020    7474  6.9  0.2   8444  4404 ?        R    Jun09 488:22 proftpd: strona@lili-art.pl - 83.23.1.157: IDLE

and

Code:
Tasks: 119 total,  19 running,  96 sleeping,   4 stopped,   0 zombie
Cpu(s): 75.3%us, 24.7%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   1543320k total,  1137772k used,   405548k free,   368504k buffers
Swap:  1951856k total,        0k used,  1951856k free,   446268k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                          
  452 vu2014    20   0  8444 4392 1452 R  6.0  0.3  31:45.38 proftpd                                                                          
  462 vu2014    20   0  8444 4400 1452 R  6.0  0.3  31:41.58 proftpd                                                                          
2518 vu2014    20   0  8444 4392 1452 R  6.0  0.3  15:25.47 proftpd                                                                          
5560 vu2020    20   0  8444 4400 1464 R  6.0  0.3 517:14.76 proftpd                                                                          
5607 vu2020    20   0  8444 4404 1464 R  6.0  0.3 515:47.07 proftpd                                                                          
5617 vu2020    20   0  8444 4400 1464 R  6.0  0.3 515:40.68 proftpd                                                                          
5754 vu2020    20   0  8444 4408 1464 R  6.0  0.3 514:45.75 proftpd                                                                          
5778 vu2020    20   0  8444 4424 1464 R  6.0  0.3 514:31.80 proftpd                                                                          
6984 vu2014    20   0  8444 4396 1452 R  6.0  0.3 505:40.57 proftpd                                                                          
7045 vu2020    20   0  8444 4412 1464 R  6.0  0.3 505:27.38 proftpd                                                                          
7120 vu2020    20   0  8444 4412 1464 R  6.0  0.3 505:09.61 proftpd                                                                          
5464 vu2020    20   0  8444 4400 1464 R  5.6  0.3 520:04.94 proftpd                                                                          
5716 vu2020    20   0  8444 4424 1464 R  5.6  0.3 515:03.70 proftpd                                                                          
6979 vu2020    20   0  8444 4420 1464 R  5.6  0.3 505:47.61 proftpd                                                                          
7178 vu2020    20   0  8444 4420 1464 R  5.6  0.3 504:54.01 proftpd                                                                          
7196 vu2020    20   0  8444 4412 1464 R  5.6  0.3 504:38.94 proftpd                                                                          
7474 vu2020    20   0  8444 4404 1464 R  5.6  0.3 503:23.78 proftpd                                                                          
6043 root      20   0  2348 1108  848 R  0.7  0.1   0:00.03 top                                                                              
    1 root      20   0   776  304  264 S  0.0  0.0   0:02.07 init                                                                              
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd                                                                          
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0                                                                      
    4 root      15  -5     0    0    0 S  0.0  0.0   0:00.20 ksoftirqd/0                                                                      
    5 root      15  -5     0    0    0 S  0.0  0.0   0:00.06 events/0                                                                          
    6 root      15  -5     0    0    0 S  0.0  0.0   0:00.01 khelper                                                                          
    9 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 kstop/0                                                                          
  202 root      15  -5     0    0    0 S  0.0  0.0   0:00.02 kblockd/0                                                                        
  204 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid                                                                            
  205 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kacpi_notify                                                                      
  256 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue

proftpd is stopted but process is running...? when i kill all and run proftp and i probe connect process loaded proc 100% and I stop proftpd and process is all time...
(This post was last modified: 06-15-2009 07:05 AM by Outlaw.)
06-15-2009 02:10 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)