Strona 2 z 2
: 10 marca 2012, 15:40
autor: marcin1982
www.proftpd.org pisze:The default location for this file is /etc/proftpd.conf or /usr/local/etc/proftpd.conf, depending on your installation.
Przykłady:
http://www.proftpd.org/docs/howto/ConfigFile.html
http://www.proftpd.org/docs/example-conf.html .
: 10 marca 2012, 16:17
autor: Mozart07
Niestety też nie ma. A to dziwne bo serwer uruchamia się normalnie. Może trzeba coś doinstalować?
Tutaj jest log z instalacji wszystko było w porządku, a pliku nie ma.
Kod: Zaznacz cały
root@vz5534:~# apt-get install proftpdReading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'proftpd-basic' instead of 'proftpd'
Suggested packages:
proftpd-doc proftpd-mod-mysql proftpd-mod-pgsql proftpd-mod-ldap
proftpd-mod-odbc proftpd-mod-sqlite
The following NEW packages will be installed:
proftpd-basic
0 upgraded, 1 newly installed, 0 to remove and 71 not upgraded.
Need to get 2329 kB of archives.
After this operation, 3994 kB of additional disk space will be used.
Get:1 [URL]http://ftp.debian.org/debian/[/URL] squeeze/main proftpd-basic i386 1.3.3a-6squeeze4 [2329 kB]
Fetched 2329 kB in 1s (1551 kB/s)
Preconfiguring packages ...
Selecting previously deselected package proftpd-basic.
(Reading database ... 31671 files and directories currently installed.)
Unpacking proftpd-basic (from .../proftpd-basic_1.3.3a-6squeeze4_i386.deb) ...
Setting up proftpd-basic (1.3.3a-6squeeze4) ...
grep: /etc/inetd.conf: No such file or directory
Warning: The home dir /var/run/proftpd you specified can't be accessed: No such file or directory
Adding system user `proftpd' (UID 106) ...
Adding new user `proftpd' (UID 106) with group `nogroup' ...
Not creating home directory `/var/run/proftpd'.
Adding system user `ftp' (UID 107) ...
Adding new user `ftp' (UID 107) with group `nogroup' ...
Creating home directory `/home/ftp' ...
`/usr/share/proftpd/templates/welcome.msg' -> `/home/ftp/welcome.msg.proftpd-new'
insserv: Script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: missing `Default-Stop:' entry: please add even if empty.
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `jexec'
Starting ftp server: proftpd.
root@vz5534:~# /etc/init.d/proftpd stop
Stopping ftp server: proftpd.
root@vz5534:~# mkdir /etc/proftpd
mkdir: cannot create directory `/etc/proftpd': File exists
root@vz5534:~# proftpd.conf
-bash: proftpd.conf: command not found
root@vz5534:~# /etc/init.d/proftpd start
Starting ftp server: proftpd.
root@vz5534:~# /etc/init.d/proftpd stop
Stopping ftp server: proftpd.
root@vz5534:~# /etc/proftd.conf
-bash: /etc/proftd.conf: No such file or directory
root@vz5534:~# /usr/local/etc/proftpd.conf
-bash: /usr/local/etc/proftpd.conf: No such file or directory
root@vz5534:~#
: 10 marca 2012, 18:06
autor: Yampress
Zajrzyj do:
/usr/local/etc/proftpd.conf, to w zależności od systemu i w zależności czy z paczek czy sam kompilowałeś ze źródeł.
Jak instalowałeś proftpd?
: 10 marca 2012, 18:38
autor: Mozart07
Przez apt-get.
Jest w katalogu /usr/share/proftpd/templates, dziękuję.
Teraz zaczyna się ciekawa historia z konfigiem.
: 10 marca 2012, 18:51
autor: Yampress
Jaki pakiet?
Prostota. Wszystko jest proste jak się zna co i gdzie wpisać.
Zobaczysz. Kilkanaście minut poświęcisz konfiguracji i już będziesz pamiętał pół życia.
Po każdej zmianie w konfigu wykonaj reset demona proftpd.
: 10 marca 2012, 19:06
autor: Mozart07
Pakiet standardowy z repozytoriów debiana.
: 10 marca 2012, 19:21
autor: Yampress
Kod: Zaznacz cały
yampress@debian:~$ aptitude search proftpd
v proftpd -
v proftpd-abi-1.3.4a -
p proftpd-basic - Versatile, virtual-hosting FTP daemon - binaries
p proftpd-dev - Versatile, virtual-hosting FTP daemon - development files
p proftpd-doc - Versatile, virtual-hosting FTP daemon - documentation
p proftpd-mod-autohost - ProFTPD module mod_autohost
p proftpd-mod-case - ProFTPD module mod_case
p proftpd-mod-clamav - ProFTPD module mod_clamav
p proftpd-mod-dnsbl - ProFTPD module mod_dnsbl
p proftpd-mod-fsync - ProFTPD module mod_fsync
p proftpd-mod-geoip - ProFTPD mod_geoip
p proftpd-mod-ldap - Versatile, virtual-hosting FTP daemon - LDAP module
p proftpd-mod-msg - ProFTPD module mod_msg
p proftpd-mod-mysql - Versatile, virtual-hosting FTP daemon - MySQL module
p proftpd-mod-odbc - Versatile, virtual-hosting FTP daemon - ODBC module
p proftpd-mod-pgsql - Versatile, virtual-hosting FTP daemon - PostgreSQL module
p proftpd-mod-sqlite - Versatile, virtual-hosting FTP daemon - SQLite3 module
p proftpd-mod-tar - ProFTPD module mod_tar
p proftpd-mod-vroot - ProFTPD module mod_vroot
yampress@debian:~$
: 10 marca 2012, 22:51
autor: piroaa
Kod: Zaznacz cały
root@vz5534:~# mkdir /etc/proftpd
mkdir: cannot create directory `/etc/proftpd': File exists
root@vz5534:~# proftpd.conf
-bash: proftpd.conf: command not found
Widzę, że trochę tej nauki przed tobą będzie.
- Sprawdź czy działa
- Opanuj jakiś edytor tekstów
- Użytkownik bez prawa do logowania do systemu to na przykład taki, który ma ustawioną powłokę np. jako: /dev/null.
- Do ograniczania miejsca na dysku służy quota jak już ktoś zdążył wspomnieć.
Powodzenia.
: 11 marca 2012, 15:08
autor: Yampress
Z taka wiedzą to ja bym się za serwer nie brał, bo następnego dnia już tego serwera może nie być. 0 pojęcia. Naucz się może podstaw, a potem bierz się za serwer!