Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Internet a sítě => Téma založeno: Kony.cz 08 Března 2008, 09:17:29
-
Tak fakt u nevim co delam spatne, nainstaloval jsem proFTPD a potom gprofTPD, vsechno udelal podle nekolika clanku, zruseni ipv6 atd.... to jsem vsechno vyresil, kdyz dam do konzole sudp gproftpd tak se to spusti a nenapise zadnou chybu, ale kdyz dam okno activate, tak se nic nestane, v konzoli, taky zadna chybova hlaska, ale nemuzu se vubec pripojit na FTP... proste mi to napise ze "Casovy limit spojeni vyprsel". Uz fakt nevim
-
Zkuste spustit z konzole jenom samotného damona z /etc/init.d/ a napište nám chyby...
-
a jak ho mam pustit ????
-
a jak ho mam pustit ????
A kolik jste toho přečetl? Pokud nevíte ani toto.
zkuste
sudo cat /etc/default/proftpd
sudo /etc/init.d/proftpd restart
sudo tail /var/log/syslog
-
sudo cat /etc/default/proftpd
kony@kony-laptop:~$ sudo cat /etc/default/proftpd
[sudo] password for kony:
# Defaults for proftpd initscript
# Master system-wide proftpd switch. The initscript
# will not run if it is not set to yes.
RUN="yes"
# Default options.
# For more exhaustive logging, try "-d 3".
OPTIONS=""
sudo /etc/init.d/proftpd restart
kony@kony-laptop:~$ sudo /etc/init.d/proftpd restart
* Stopping ftp server proftpd [ OK ]
* Starting ftp server proftpd [ OK
sudo tail /var/log/syslog
kony@kony-laptop:~$ sudo tail /var/log/syslog
Mar 9 18:12:10 kony-laptop NetworkManager: <debug> [1205082730.257382] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00').
Mar 9 18:12:10 kony-laptop NetworkManager: <info> Deactivating device eth1.
Mar 9 18:12:10 kony-laptop NetworkManager: <debug> [1205082730.379566] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_ffffffff_ffffffff_noserial').
Mar 9 18:12:10 kony-laptop NetworkManager: <debug> [1205082730.379759] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_3340_a0a1_12100706_3007_0110_1800_00022ac1fc92_if1').
Mar 9 18:12:10 kony-laptop NetworkManager: <debug> [1205082730.380802] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_3340_a0a1_12100706_3007_0110_1800_00022ac1fc92_usbraw').
Mar 9 18:12:10 kony-laptop NetworkManager: <debug> [1205082730.381014] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_3340_a0a1_12100706_3007_0110_1800_00022ac1fc92').
Mar 9 18:16:12 kony-laptop sensord: Chip: k8temp-pci-00c3
Mar 9 18:16:12 kony-laptop sensord: Adapter: PCI adapter
Mar 9 18:16:12 kony-laptop sensord: Core0 Temp: 54.0 C
Mar 9 18:17:01 kony-laptop /USR/SBIN/CRON[32408]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
-
Ten výpis syslogu jste předpokládám provedl po restartu?
telnet localhost 21
-
telnet localhost 21
kony@kony-laptop:~$ telnet localhost 21
Trying 127.0.0.1...
Connected to ip6-localhost.
Escape character is '^]'.
Connection closed by foreign host.
A vypis logu jsem nedelal po restartu...
-
Tak to byla chyba. Výpis z logu po restartu nám řekne, zda se server spustí. A viditelně spustí, dokonce vám i běží. Nemáte blokované potřebné porty?
-
nevim o tom ze by meli byt blokovane .... firewall jsem neinstaloval...
-
Dejte nám sem Váš proftpd.conf také se zkuste připojit na FTP localhost a dejte sem tail logu syslog a auth.log
-
Na localhost se neda pripojit
proftpd.conf
ServerType standalone
DefaultServer on
Umask 022
ServerName "172.16.123.52"
ServerIdent on "My FTPD"
ServerAdmin Admin@this.domain.topdomain
IdentLookups off
UseReverseDNS off
Port 21
PassivePorts 49152 65534
#MasqueradeAddress None
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
DisplayLogin welcome.msg
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress off
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 30
TransferRate STOR 40
TransferRate STOU 40
TransferRate APPE 40
SystemLog /var/log/secure
RequireValidShell off
#gp_random_username_length 6
#gp_random_password_length 6
#gp_randomize_case lower
#gp_useradd_homedir_path /var/ftp
#gp_html_path /var/www/html/ftp.htm
#gp_welcome_name welcome.msg
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol TLSv1
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gproftpd/gproftpd.pem
</IfModule>
<IfModule mod_ratio.c>
Ratios off
SaveRatios off
RatioFile "/restricted/proftpd_ratios"
RatioTempFile "/restricted/proftpd_ratios_temp"
CwdRatioMsg "Please upload first!"
FileRatioErrMsg "FileRatio limit exceeded, upload something first..."
ByteRatioErrMsg "ByteRatio limit exceeded, upload something first..."
LeechRatioMsg "Your ratio is unlimited."
</IfModule>
<Limit LOGIN>
AllowUser videon
DenyALL
</Limit>
<Anonymous /var/ftp/kony>
User videon
Group kony
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
AllowOverwrite off
<Limit LIST NLST STOR STOU APPE RETR RNFR RNTO PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM >
DenyAll
</Limit>
</Anonymous>
<VirtualHost 172.16.123.52>
Port 65535
ServerName "172.16.123.52"
ServerIdent on "Unspecified"
PassivePorts 49152 65523
#MasqueradeAddress None
ServerAdmin Admin@this.domain
Umask 022
TimesGMT off
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
User nobody
Group nobody
DirFakeUser on nobody
DirFakeGroup on nobody
DefaultTransferMode binary
AllowForeignAddress off
DeleteAbortedStores off
AllowRetrieveRestart on
AllowStoreRestart off
TransferRate RETR 30
TransferRate STOR 50
TransferRate STOU 50
TransferRate APPE 50
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gproftpd/gproftpd.pem
</IfModule>
<IfModule mod_ratio.c>
Ratios off
SaveRatios off
RatioFile "/restricted/proftpd_ratios"
RatioTempFile "/restricted/proftpd_ratios_temp"
CwdRatioMsg "Please upload first!"
FileRatioErrMsg "FileRatio limit exceeded, upload something first..."
ByteRatioErrMsg "ByteRatio limit exceeded, upload something first..."
LeechRatioMsg "Your ratio is unlimited."
</IfModule>
<Limit LOGIN>
AllowUser kony
DenyAll
</Limit>
<Anonymous /var/ftp/guest>
User kony
Group guest
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
AllowOverwrite off
AllowOverwrite on
<Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit NOTHING >
DenyAll
</Limit>
</Anonymous>
</VirtualHost>
syslog
kony@kony-laptop:~$ sudo tail /var/log/syslog
[sudo] password for kony:
Mar 10 07:16:20 kony-laptop sensord: Adapter: PCI adapter
Mar 10 07:16:20 kony-laptop sensord: Core0 Temp: 48.0 C
Mar 10 07:17:01 kony-laptop /USR/SBIN/CRON[986]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Mar 10 07:28:55 kony-laptop in.ftpd[2580]: connect from 127.0.0.1 (127.0.0.1)
Mar 10 07:28:55 kony-laptop in.ftpd[2580]: error: cannot execute /usr/sbin/in.ftpd: No such file or directory
Mar 10 07:30:01 kony-laptop /USR/SBIN/CRON[2714]: (root) CMD (test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null)
Mar 10 07:30:01 kony-laptop anacron[2741]: Anacron 2.3 started on 2008-03-10
Mar 10 07:30:01 kony-laptop anacron[2741]: Will run job `cron.daily' in 5 min.
Mar 10 07:30:01 kony-laptop anacron[2741]: Will run job `cron.weekly' in 10 min.
Mar 10 07:30:01 kony-laptop anacron[2741]: Jobs will be executed sequentially
autk.log
kony@kony-laptop:~$ sudo tail /var/log/auth.log
Mar 10 06:25:02 kony-laptop CRON[27208]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 10 06:25:02 kony-laptop CRON[27208]: pam_unix(cron:session): session closed for user root
Mar 10 07:17:01 kony-laptop CRON[985]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 10 07:17:01 kony-laptop CRON[985]: pam_unix(cron:session): session closed for user root
Mar 10 07:30:01 kony-laptop CRON[2713]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 10 07:30:01 kony-laptop CRON[2713]: pam_unix(cron:session): session closed for user root
Mar 10 07:30:32 kony-laptop sudo: kony : TTY=pts/0 ; PWD=/home/kony ; USER=root ; COMMAND=/usr/bin/tail /var/log/syslog
Mar 10 07:31:05 kony-laptop sudo: kony : TTY=pts/0 ; PWD=/home/kony ; USER=root ; COMMAND=/usr/bin/tail /var/log/s
Mar 10 07:31:09 kony-laptop sudo: kony : TTY=pts/0 ; PWD=/home/kony ; USER=root ; COMMAND=/usr/bin/tail /var/log/ls
Mar 10 07:31:18 kony-laptop sudo: kony : TTY=pts/0 ; PWD=/home/kony ; USER=root ; COMMAND=/usr/bin/tail /var/log/auth.log
-
Všechny logy se Vám podle konfigurace ukládají do /var/log/secure mrkněte tam. Proč používáte virtual servery při tak jednoduché aplikaci???
-
no tenhle konfigurak jsem nekde prevzal, myslim tady v tematu o proftpd, ze je funkcni
tohle je v secure
Mar 07 18:47:36 kony-laptop proftpd[10838] kony-laptop: Failed binding to ::, port 21: Address already in use
Mar 07 18:47:36 kony-laptop proftpd[10838] kony-laptop: Check the ServerType directive to ensure you are configured correctly.
Mar 07 18:48:59 kony-laptop proftpd[11015] kony-laptop: Failed binding to ::, port 21: Address already in use
Mar 07 18:48:59 kony-laptop proftpd[11015] kony-laptop: Check the ServerType directive to ensure you are configured correctly.
Mar 07 18:51:24 kony-laptop proftpd[11324] kony-laptop: Failed binding to ::, port 21: Address already in use
Mar 07 18:51:24 kony-laptop proftpd[11324] kony-laptop: Check the ServerType directive to ensure you are configured correctly.
Mar 07 18:52:26 kony-laptop proftpd[11455] kony-laptop: Failed binding to ::, port 21: Address already in use
Mar 07 18:52:26 kony-laptop proftpd[11455] kony-laptop: Check the ServerType directive to ensure you are configured correctly.
Mar 07 18:52:32 kony-laptop proftpd[11468] kony-laptop: Failed binding to ::, port 21: Address already in use
Mar 07 18:52:32 kony-laptop proftpd[11468] kony-laptop: Check the ServerType directive to ensure you are configured correctly.
Mar 07 18:53:21 kony-laptop proftpd[11578] kony-laptop: Failed binding to ::, port 21: Address already in use
Mar 07 18:53:21 kony-laptop proftpd[11578] kony-laptop: Check the ServerType directive to ensure you are configured correctly.
Mar 07 18:53:38 kony-laptop proftpd[11615] kony-laptop: Failed binding to ::, port 21: Address already in use
Mar 07 18:53:38 kony-laptop proftpd[11615] kony-laptop: Check the ServerType directive to ensure you are configured correctly.
Mar 07 18:57:54 kony-laptop proftpd[12152] kony-laptop: Failed binding to ::, port 21: Address already in use
Mar 07 18:57:54 kony-laptop proftpd[12152] kony-laptop: Check the ServerType directive to ensure you are configured correctly.
Mar 07 19:01:45 kony-laptop proftpd[6546] kony-laptop: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 07 19:01:45 kony-laptop proftpd[6546] kony-laptop: Check the ServerType directive to ensure you are configured correctly.
Mar 07 19:02:54 kony-laptop proftpd[7262] kony-laptop: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 07 19:02:54 kony-laptop proftpd[7262] kony-laptop: Check the ServerType directive to ensure you are configured correctly.
Mar 07 19:11:20 kony-laptop proftpd[8415] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 07 19:11:20 kony-laptop proftpd[8415] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 07 19:12:26 kony-laptop proftpd[8585] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 07 19:12:26 kony-laptop proftpd[8585] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 07 20:37:24 kony-laptop proftpd[6533] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 07 20:37:24 kony-laptop proftpd[6533] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 07 20:39:06 kony-laptop proftpd[7421] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 07 20:39:06 kony-laptop proftpd[7421] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 07 20:39:16 kony-laptop proftpd[7447] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 07 20:39:16 kony-laptop proftpd[7447] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 07 20:40:33 kony-laptop proftpd[7615] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 07 20:40:33 kony-laptop proftpd[7615] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 08 09:00:27 kony-laptop proftpd[5082] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 08 09:00:27 kony-laptop proftpd[5082] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 08 09:00:55 kony-laptop proftpd[5146] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 08 09:00:55 kony-laptop proftpd[5146] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 08 09:11:24 kony-laptop proftpd[6609] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 08 09:11:24 kony-laptop proftpd[6609] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 08 09:11:37 kony-laptop proftpd[6642] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 08 09:11:37 kony-laptop proftpd[6642] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 08 12:18:26 kony-laptop proftpd[30750] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 08 12:18:26 kony-laptop proftpd[30750] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 09 10:46:11 kony-laptop proftpd[6904] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 09 10:46:12 kony-laptop proftpd[6904] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 09 18:16:41 kony-laptop proftpd[32359] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 09 18:16:41 kony-laptop proftpd[32359] localhost: Check the ServerType directive to ensure you are configured correctly.
Mar 10 17:34:44 kony-laptop proftpd[6567] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
Mar 10 17:34:44 kony-laptop proftpd[6567] localhost: Check the ServerType directive to ensure you are configured correctly.
-
Nicméně se proftpd nemůže spustit na portu 21 - něco jiného na něm již je. Nezkoušel jste už před proftpd instalovat nějaký FTP server?
-
hm, zkousel :))), zkusim to nastavit treba na jinaci port
PS: takze jsem to dal na port 83 a uz to jede.... tak a jak ted zjistit co mi tam vysi
-
Hlavně bych zkusil odstranit to, co jste předtím instaloval ;)
-
no nic jsem neinstaloval, teda aspon myslim, ale tedka jsem si projel PC pres nmap a tohle mi to vypsalo
PORT STATE SERVICE VERSION
21/tcp open tcpwrapped
22/tcp open ssh OpenSSH 4.6p1 Debian 5build1 (protocol 2.0)
631/tcp open ipp CUPS 1.2
-
Hm, tak tady musí poradit jiní - na portu 21 se cosi usadilo, ale co to je a proč to tam je netuším. Hádám je to opravdu něco z předchozí instalace. Ještě mne napadá mrkněte do /etc/inetd.conf, zda tam není něco na portu 21, případně ještě xinetd - podle toho, co používáte.
-
podivam a chtel bych vam jeste podekovat za vasi ochotu se semnou piplat.... Dekuji moc
takze
/etc/inetd.conf
ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.ftpd
tak a mam to.... vysel mi tam ftpd... ne teda balicek primo ftpd ale nejakej dalsi jeho balicek, dal jsem kompletne odebrat ftpd a uz to jde aji na portu 21 :))))
-
Super, takže označuji za vyřešené
-
Jeste jednou dekuji za vas cas a schopnost radit druhym
-
Není vůbec zač, já naopak děkuji, že si toho vážíte ;)