Lista Unx
2016-12-07 12:07:01 UTC
Hello all,
Trying to isolate a global problem which I have on another system, I've installed proftpd on centos 7 box, standalone. From the beginning Selinux and firewall has been disabled!
When trying to connect locally and LIST content in current path, nothing is displayed and the process is still running in loop.
So I've started proftpd in debug mode.
All the time (anonymous or valid user) I've got the same message: "added timer ID 4 ('TimeoutStalled', for module '[none]'), triggering in 3600 seconds" ...
What does module NONE mean and how can be solved? Seems proftpd is not loading correct module ... See below:
[***@ftpd alex]# telnet localhost 21
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 FTP Server ready.
user alex
331 Password required for alex
pass
230 User alex logged in
pasv
227 Entering Passive Mode (192,168,13,104,194,82).
stat
211-Status of 'ProFTPD server'
Connected from 127.0.0.1 (127.0.0.1)
Logged in as alex
TYPE: ASCII, STRUcture: File, Mode: Stream
No data connection
211 End of status
list
^]
telnet> quit
Connection closed.
Proftpd has been started as following:
[***@ftpd alex]# proftpd -4 -c /etc/proftpd.conf -d 10 -n
...
2016-12-07 13:28:58,656 ftpd.rhce.local proftpd[24781] 192.168.13.104 (127.0.0.1[127.0.0.1]): dispatching PRE_CMD command 'LIST' to mod_tls
2016-12-07 13:28:58,656 ftpd.rhce.local proftpd[24781] 192.168.13.104 (127.0.0.1[127.0.0.1]): dispatching PRE_CMD command 'LIST' to mod_core
2016-12-07 13:28:58,656 ftpd.rhce.local proftpd[24781] 192.168.13.104 (127.0.0.1[127.0.0.1]): dispatching PRE_CMD command 'LIST' to mod_core
2016-12-07 13:28:58,656 ftpd.rhce.local proftpd[24781] 192.168.13.104 (127.0.0.1[127.0.0.1]): dispatching CMD command 'LIST' to mod_ls
2016-12-07 13:30:35,926 ftpd.rhce.local proftpd[24705] 192.168.13.104 (127.0.0.1[127.0.0.1]): ProFTPD terminating (signal 2)
2016-12-07 13:30:35,926 ftpd.rhce.local proftpd[24705] 192.168.13.104 (127.0.0.1[127.0.0.1]): FTP session closed.
and in tracelog:
2016-12-07 13:28:52,746 [24781] <response:1>: Logged in as alex
2016-12-07 13:28:52,746 [24781] <response:1>: TYPE: ASCII, STRUcture: File, Mode: Stream
2016-12-07 13:28:52,746 [24781] <response:1>: No data connection
2016-12-07 13:28:52,746 [24781] <response:1>: 211 End of status
2016-12-07 13:28:58,171 [24779] <signal:5>: signals blocked
2016-12-07 13:28:58,371 [24779] <signal:5>: signals unblocked
2016-12-07 13:28:58,371 [24779] <signal:9>: handling SIGALRM (signal 14)
2016-12-07 13:28:58,371 [24779] <timer:4>: 10 seconds for timer ID 24075 ('Controls polling', for module 'ctrls') elapsed, invoking callback (0x7ff9987c2530)
2016-12-07 13:28:58,372 [24779] <timer:6>: restarting timer ID 24075 ('Controls polling'), as per callback
2016-12-07 13:28:58,372 [24779] <fsio:8>: using system lstat() for path '/etc/shutmsg'
2016-12-07 13:28:58,656 [24781] <timer:7>: reset timer ID 2 ('TimeoutIdle', for module '[none]')
2016-12-07 13:28:58,656 [24781] <response:9>: clearing response lists before dispatching command 'list'
2016-12-07 13:28:58,656 [24781] <encode:5>: decoded 'LIST' into 'LIST'
2016-12-07 13:28:58,656 [24781] <command:7>: dispatching PRE_CMD command 'LIST' to mod_tls.c
2016-12-07 13:28:58,656 [24781] <command:7>: dispatching PRE_CMD command 'LIST' to mod_core.c
2016-12-07 13:28:58,656 [24781] <command:7>: dispatching PRE_CMD command 'LIST' to mod_core.c
2016-12-07 13:28:58,656 [24781] <scoreboard:3>: updating scoreboard entry
2016-12-07 13:28:58,656 [24781] <lock:9>: attempting to write-lock scoreboard fd 14 entry, offset 32
2016-12-07 13:28:58,656 [24781] <lock:9>: write-lock of scoreboard fd 14 entry, offset 32 succeeded
2016-12-07 13:28:58,656 [24781] <lock:9>: attempting to unlock scoreboard fd 14 entry, offset 32
2016-12-07 13:28:58,656 [24781] <lock:9>: unlock of scoreboard fd 14 entry, offset 32 succeeded
2016-12-07 13:28:58,656 [24781] <scoreboard:3>: finished updating scoreboard entry
2016-12-07 13:28:58,656 [24781] <scoreboard:3>: updating scoreboard entry
2016-12-07 13:28:58,656 [24781] <lock:9>: attempting to write-lock scoreboard fd 14 entry, offset 32
2016-12-07 13:28:58,656 [24781] <lock:9>: write-lock of scoreboard fd 14 entry, offset 32 succeeded
2016-12-07 13:28:58,656 [24781] <lock:9>: attempting to unlock scoreboard fd 14 entry, offset 32
2016-12-07 13:28:58,656 [24781] <lock:9>: unlock of scoreboard fd 14 entry, offset 32 succeeded
2016-12-07 13:28:58,656 [24781] <scoreboard:3>: finished updating scoreboard entry
2016-12-07 13:28:58,656 [24781] <command:7>: dispatching CMD command 'LIST' to mod_ls.c
2016-12-07 13:28:58,656 [24781] <encode:5>: decoded '' into ''
2016-12-07 13:28:58,656 [24781] <fsio:8>: using system stat() for path ''
2016-12-07 13:28:58,656 [24781] <data:8>: allocated data transfer buffer of 16384 bytes
2016-12-07 13:28:58,656 [24781] <timer:7>: added timer ID 4 ('TimeoutStalled', for module '[none]'), triggering in 3600 seconds
and jump again to beginning: "<signal:5>: signals blocked" forever if not stopped manually.
^C
[***@ftpd ~]#
See below my proftpd.conf
[***@ftpd alex]# cat /etc/proftpd.conf
ServerName "ProFTPD server"
ServerIdent on "FTP Server ready."
ServerAdmin ***@localhost
DefaultServer on
DefaultRoot ~ !adm
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c
UseReverseDNS off
User nobody
Group nobody
MaxInstances 20
UseSendfile off
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
LoadModule mod_ctrls_admin.c
LoadModule mod_vroot.c
LoadModule mod_ls.c
ModuleControlsACLs insmod,rmmod allow user root
ModuleControlsACLs lsmod allow user *
ControlsEngine on
ControlsACLs all allow user root
ControlsSocketACL allow user *
ControlsLog /var/log/proftpd/controls.log
<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
AdminControlsACLs all allow user root
</IfModule>
<Global>
Umask 022
# Allow users to overwrite files and change permissions
AllowOverwrite yes
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
<Limit LIST>
AllowAll
</Limit>
</Global>
<Anonymous ~ftp>
User ftp
Group ftp
AccessGrantMsg "Anonymous login ok, restrictions apply."
UserAlias anonymous ftp
MaxClients 10 "Sorry, max %m users -- try again later"
DefaultChdir /pub
DisplayLogin /welcome.msg
DisplayChdir .message
DisplayReadme README*
DirFakeUser on ftp
DirFakeGroup on ftp
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE SITE_CHMOD>
DenyAll
</Limit>
# Allow read, list
<Limit READ LIST>
AllowAll
</Limit>
# Don't write anonymous accesses to the system wtmp file (good idea!)
WtmpLog off
# Logging for the anonymous transfers
ExtendedLog /var/log/proftpd/access.log WRITE,READ default
ExtendedLog /var/log/proftpd/auth.log AUTH auth
</Anonymous>
MasqueradeAddress 192.168.13.104
PassivePorts 49152 65534
<IfModule mod_facts.c>
FactsAdvertise off
</IfModule>
TraceLog /var/log/proftpd/trace.log
Trace DEFAULT:10
ScoreboardScrub off
[***@ftpd alex]#
What is missing or what is wrong in my proftpd.conf (proftpd-1.3.5b-2.el7.x86_64)?
Thank you in advance for help.
Alex
Trying to isolate a global problem which I have on another system, I've installed proftpd on centos 7 box, standalone. From the beginning Selinux and firewall has been disabled!
When trying to connect locally and LIST content in current path, nothing is displayed and the process is still running in loop.
So I've started proftpd in debug mode.
All the time (anonymous or valid user) I've got the same message: "added timer ID 4 ('TimeoutStalled', for module '[none]'), triggering in 3600 seconds" ...
What does module NONE mean and how can be solved? Seems proftpd is not loading correct module ... See below:
[***@ftpd alex]# telnet localhost 21
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 FTP Server ready.
user alex
331 Password required for alex
pass
230 User alex logged in
pasv
227 Entering Passive Mode (192,168,13,104,194,82).
stat
211-Status of 'ProFTPD server'
Connected from 127.0.0.1 (127.0.0.1)
Logged in as alex
TYPE: ASCII, STRUcture: File, Mode: Stream
No data connection
211 End of status
list
^]
telnet> quit
Connection closed.
Proftpd has been started as following:
[***@ftpd alex]# proftpd -4 -c /etc/proftpd.conf -d 10 -n
...
2016-12-07 13:28:58,656 ftpd.rhce.local proftpd[24781] 192.168.13.104 (127.0.0.1[127.0.0.1]): dispatching PRE_CMD command 'LIST' to mod_tls
2016-12-07 13:28:58,656 ftpd.rhce.local proftpd[24781] 192.168.13.104 (127.0.0.1[127.0.0.1]): dispatching PRE_CMD command 'LIST' to mod_core
2016-12-07 13:28:58,656 ftpd.rhce.local proftpd[24781] 192.168.13.104 (127.0.0.1[127.0.0.1]): dispatching PRE_CMD command 'LIST' to mod_core
2016-12-07 13:28:58,656 ftpd.rhce.local proftpd[24781] 192.168.13.104 (127.0.0.1[127.0.0.1]): dispatching CMD command 'LIST' to mod_ls
2016-12-07 13:30:35,926 ftpd.rhce.local proftpd[24705] 192.168.13.104 (127.0.0.1[127.0.0.1]): ProFTPD terminating (signal 2)
2016-12-07 13:30:35,926 ftpd.rhce.local proftpd[24705] 192.168.13.104 (127.0.0.1[127.0.0.1]): FTP session closed.
and in tracelog:
2016-12-07 13:28:52,746 [24781] <response:1>: Logged in as alex
2016-12-07 13:28:52,746 [24781] <response:1>: TYPE: ASCII, STRUcture: File, Mode: Stream
2016-12-07 13:28:52,746 [24781] <response:1>: No data connection
2016-12-07 13:28:52,746 [24781] <response:1>: 211 End of status
2016-12-07 13:28:58,171 [24779] <signal:5>: signals blocked
2016-12-07 13:28:58,371 [24779] <signal:5>: signals unblocked
2016-12-07 13:28:58,371 [24779] <signal:9>: handling SIGALRM (signal 14)
2016-12-07 13:28:58,371 [24779] <timer:4>: 10 seconds for timer ID 24075 ('Controls polling', for module 'ctrls') elapsed, invoking callback (0x7ff9987c2530)
2016-12-07 13:28:58,372 [24779] <timer:6>: restarting timer ID 24075 ('Controls polling'), as per callback
2016-12-07 13:28:58,372 [24779] <fsio:8>: using system lstat() for path '/etc/shutmsg'
2016-12-07 13:28:58,656 [24781] <timer:7>: reset timer ID 2 ('TimeoutIdle', for module '[none]')
2016-12-07 13:28:58,656 [24781] <response:9>: clearing response lists before dispatching command 'list'
2016-12-07 13:28:58,656 [24781] <encode:5>: decoded 'LIST' into 'LIST'
2016-12-07 13:28:58,656 [24781] <command:7>: dispatching PRE_CMD command 'LIST' to mod_tls.c
2016-12-07 13:28:58,656 [24781] <command:7>: dispatching PRE_CMD command 'LIST' to mod_core.c
2016-12-07 13:28:58,656 [24781] <command:7>: dispatching PRE_CMD command 'LIST' to mod_core.c
2016-12-07 13:28:58,656 [24781] <scoreboard:3>: updating scoreboard entry
2016-12-07 13:28:58,656 [24781] <lock:9>: attempting to write-lock scoreboard fd 14 entry, offset 32
2016-12-07 13:28:58,656 [24781] <lock:9>: write-lock of scoreboard fd 14 entry, offset 32 succeeded
2016-12-07 13:28:58,656 [24781] <lock:9>: attempting to unlock scoreboard fd 14 entry, offset 32
2016-12-07 13:28:58,656 [24781] <lock:9>: unlock of scoreboard fd 14 entry, offset 32 succeeded
2016-12-07 13:28:58,656 [24781] <scoreboard:3>: finished updating scoreboard entry
2016-12-07 13:28:58,656 [24781] <scoreboard:3>: updating scoreboard entry
2016-12-07 13:28:58,656 [24781] <lock:9>: attempting to write-lock scoreboard fd 14 entry, offset 32
2016-12-07 13:28:58,656 [24781] <lock:9>: write-lock of scoreboard fd 14 entry, offset 32 succeeded
2016-12-07 13:28:58,656 [24781] <lock:9>: attempting to unlock scoreboard fd 14 entry, offset 32
2016-12-07 13:28:58,656 [24781] <lock:9>: unlock of scoreboard fd 14 entry, offset 32 succeeded
2016-12-07 13:28:58,656 [24781] <scoreboard:3>: finished updating scoreboard entry
2016-12-07 13:28:58,656 [24781] <command:7>: dispatching CMD command 'LIST' to mod_ls.c
2016-12-07 13:28:58,656 [24781] <encode:5>: decoded '' into ''
2016-12-07 13:28:58,656 [24781] <fsio:8>: using system stat() for path ''
2016-12-07 13:28:58,656 [24781] <data:8>: allocated data transfer buffer of 16384 bytes
2016-12-07 13:28:58,656 [24781] <timer:7>: added timer ID 4 ('TimeoutStalled', for module '[none]'), triggering in 3600 seconds
and jump again to beginning: "<signal:5>: signals blocked" forever if not stopped manually.
^C
[***@ftpd ~]#
See below my proftpd.conf
[***@ftpd alex]# cat /etc/proftpd.conf
ServerName "ProFTPD server"
ServerIdent on "FTP Server ready."
ServerAdmin ***@localhost
DefaultServer on
DefaultRoot ~ !adm
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c
UseReverseDNS off
User nobody
Group nobody
MaxInstances 20
UseSendfile off
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
LoadModule mod_ctrls_admin.c
LoadModule mod_vroot.c
LoadModule mod_ls.c
ModuleControlsACLs insmod,rmmod allow user root
ModuleControlsACLs lsmod allow user *
ControlsEngine on
ControlsACLs all allow user root
ControlsSocketACL allow user *
ControlsLog /var/log/proftpd/controls.log
<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
AdminControlsACLs all allow user root
</IfModule>
<Global>
Umask 022
# Allow users to overwrite files and change permissions
AllowOverwrite yes
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
<Limit LIST>
AllowAll
</Limit>
</Global>
<Anonymous ~ftp>
User ftp
Group ftp
AccessGrantMsg "Anonymous login ok, restrictions apply."
UserAlias anonymous ftp
MaxClients 10 "Sorry, max %m users -- try again later"
DefaultChdir /pub
DisplayLogin /welcome.msg
DisplayChdir .message
DisplayReadme README*
DirFakeUser on ftp
DirFakeGroup on ftp
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE SITE_CHMOD>
DenyAll
</Limit>
# Allow read, list
<Limit READ LIST>
AllowAll
</Limit>
# Don't write anonymous accesses to the system wtmp file (good idea!)
WtmpLog off
# Logging for the anonymous transfers
ExtendedLog /var/log/proftpd/access.log WRITE,READ default
ExtendedLog /var/log/proftpd/auth.log AUTH auth
</Anonymous>
MasqueradeAddress 192.168.13.104
PassivePorts 49152 65534
<IfModule mod_facts.c>
FactsAdvertise off
</IfModule>
TraceLog /var/log/proftpd/trace.log
Trace DEFAULT:10
ScoreboardScrub off
[***@ftpd alex]#
What is missing or what is wrong in my proftpd.conf (proftpd-1.3.5b-2.el7.x86_64)?
Thank you in advance for help.
Alex