Proftpd - nie wida

Konfiguracja serwerów, usług, itp.
butek
Beginner
Posty: 176
Rejestracja: 08 czerwca 2007, 17:54
Lokalizacja: Sierpc

Proftpd - nie widać plików

Post autor: butek »

Serwer proftpd działa ale nie widać plików, dlaczego?

Kod: Zaznacz cały

Include /etc/proftpd/modules.conf
# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6				off
UseReverseDNS off 
IdentLookups off
ServerName			"serverlinux"
ServerType			standalone
DeferWelcome			on
#Bind                            80.52.243.42 
#MultilineRFC2228		on
DefaultServer			on
#DefaultRoot                     ~
ShowSymlinks			on
Umask  002
#User nobody
#Group nobody
TimeoutNoTransfer		600
TimeoutStalled			600
TimeoutIdle			1200
DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                	"-l"
DenyFilter			\*.*/

# 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				proftpd
#Group				nogroup
User ftp
Group nogroup
#<Anonymous ~ftp>
#User				ftp
#Group				ftp
# 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

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

#AnonRequirePassword off
		

#Allow from 127.0.0.1
#Allow from 192.168.1.
#Allow from 172.23.198.

# 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

TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log

<IfModule mod_tls.c>
TLSEngine off
</IfModule>

<IfModule mod_quota.c>
QuotaEngine on
</IfModule>

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


# Delay engine reduces impact of the so-called Timing Attack described in
# [url]http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02[/url]
# 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>

# A basic anonymous configuration, no upload directories.

 <Anonymous /home/ftp/>
   User				ftp
   Group				nogroup
#   # We want clients to be able to login with "anonymous" as well as "ftp"
   UserAlias			anonymous ftp
#   # Cosmetic changes, all files belongs to ftp user
   DirFakeUser	on ftp
   DirFakeGroup on nogroup
# 
   RequireValidShell		off
# 
#   # Limit the maximum number of anonymous logins
   MaxClients			30
# 
#   # We want 'welcome.msg' displayed at login, and '.message' displayed
#   # in each newly chdired directory.
   DisplayLogin			welcome.msg
   DisplayFirstChdir		.message
# 
#   # Limit WRITE everywhere in the anonymous chroot
   <Directory *>
     <Limit WRITE>
       DenyAll
     </Limit>
   </Directory>
# 
#   # Uncomment this if you're brave.
    <Directory incoming>
   #   # Umask 022 is a good standard umask to prevent new files and dirs
   #   # (second parm) from being group and world writable.
      Umask				022  022
               <Limit READ WRITE>
               DenyAll
               </Limit>
               <Limit STOR>
               AllowAll
               </Limit>
    </Directory>
 
</Anonymous>
Awatar użytkownika
lis6502
Member
Posty: 1798
Rejestracja: 05 listopada 2008, 20:14
Lokalizacja: Miasto Szybowców

Post autor: lis6502 »

Szklana kulo, powiedz nam, o łaskawa, w jakichto warunkach przyszło butkowi operować, iż plików on nie widzi...
butek
Beginner
Posty: 176
Rejestracja: 08 czerwca 2007, 17:54
Lokalizacja: Sierpc

Post autor: butek »

A proftpd.conf nie wystarczy?
Awatar użytkownika
lis6502
Member
Posty: 1798
Rejestracja: 05 listopada 2008, 20:14
Lokalizacja: Miasto Szybowców

Post autor: lis6502 »

Po prostu opisz problem. Nie widać plików <- trochę mało informacji. Nie piszesz jak się logujesz, jakie prawa masz na poszczególne katalogi (domowe użytkowników, ~ftp itp), kto i czego nie widzi.
Szczegóły, szczegóły :)
butek
Beginner
Posty: 176
Rejestracja: 08 czerwca 2007, 17:54
Lokalizacja: Sierpc

Post autor: butek »

Jak serwer chodzi na 21 porcie to mam:
Failed binding to 0.0.0.0, port 21: Address already in use
Feb 25 06:46:16 serverlinux proftpd[4671] serverlinux: Check the ServerType directive to ensure you are configured correctly.
Jak zmienię port na 31 to:
Feb 25 06:48:04 serverlinux proftpd[4862] serverlinux: ProFTPD 1.3.0 (stable) (built Tue Nov 4 14:38:05 UTC 2008) standalone mode STARTUP
Nie mogę się zalogować jako anonymous (z takim loginem i hasłem)
Próbuje się zalogować na konto linuksowe:
Feb 25 09:27:15 serverlinux proftpd[12254] serverlinux (172.23.198.133[172.23.198.133]): USER ftp (Login failed): User in /etc/ftpusers
Po zalogowaniu się jako użytkownik linuksowy ftp próbuję się połączyć z zasobami i wisi:
USER ButajloM: Login successful.
Feb 25 09:53:51 serverlinux proftpd[14055] serverlinux (172.23.198.133[172.23.198.133]): Preparing to chroot to directory '/home/ButajloM'
Feb 25 09:53:51 serverlinux proftpd[14055] serverlinux (172.23.198.133[172.23.198.133]): mod_delay/0.5: delaying for 2924030 usecs
Feb 25 09:27:15 serverlinux proftpd[12254] serverlinux (172.23.198.133[172.23.198.133]): mod_delay/0.5: delaying for 9948 usecs
Feb 25 09:27:23 serverlinux proftpd[12254] serverlinux (172.23.198.133[172.23.198.133]): mod_delay/0.5: delaying for 23 usecs
Feb 25 09:27:23 serverlinux proftpd[12254] serverlinux (172.23.198.133[172.23.198.133]): USER ButajloM: Login successful.
Feb 25 09:27:23 serverlinux proftpd[12254] serverlinux (172.23.198.133[172.23.198.133]): mod_delay/0.5: delaying for 1619 usecs
To mnie niepokoi:
Feb 25 09:27:15 serverlinux proftpd[12254] serverlinux (172.23.198.133[172.23.198.133]): USER ftp (Login failed): User in /etc/ftpusers
Jeśli zahaszuję użytkownika ftp w /etc/ftpusers to nie mogę odpalić serwera ftp.

[ Dodano: 2009-02-26, 08:47 ]
Przeinstalowałem proftpd i chodzi.
Teraz :jak zrobić aby jeden katalog był dostępny bez hasła dla wszystkich. Po prostu klika i już widzi katalog z pod katalogami i może tylko pobierać pliki.
ODPOWIEDZ