68 lines
2.4 KiB
TeX
68 lines
2.4 KiB
TeX
|
% master: pureftpd.tex
|
||
|
% PureFTPd v0.1
|
||
|
% 2011-06-01 (Rx)
|
||
|
|
||
|
\subsection{PureFTPd}
|
||
|
%--------------------
|
||
|
|
||
|
\begin{verbatim}
|
||
|
cd /usr/local/src Verzeichnis wechseln
|
||
|
tar xvfz pure-ftpd-1.0.20.tar.gz Quelldateien entpacken
|
||
|
cd pure-ftpd-1.0.20 Verzeichnis wechseln
|
||
|
./configure --prefix=/usr/local/pure-ftpd/1.0.20 --with-language=german
|
||
|
Makefile herstellen
|
||
|
make Programm herstellen
|
||
|
make check Programm prüfen
|
||
|
su als root anmelden
|
||
|
make install Programm installieren
|
||
|
ln -s /usr/local/pure-ftpd/1.0.20 /usr/local/pure-ftpd/current
|
||
|
Link zu pure-ftpd
|
||
|
mkdir /usr/local/pure-ftpd/current/etc Verzeichnis etc anlegen
|
||
|
cp configuration-file/pure-ftpd.conf /usr/local/pure-ftpd/current/etc
|
||
|
Konfiguration kopieren
|
||
|
cp pureftpd-*.conf /usr/local/pure-ftpd/current/etc
|
||
|
Konfigurationen kopieren
|
||
|
ln -s /usr/local/pure-ftpd/current/etc /etc/pure-ftpd
|
||
|
Link zu den Konfigurationen
|
||
|
|
||
|
vi /etc/init.d/pure-ftpd Startdatei für pure-ftpd anlegen
|
||
|
#!/bin/bash
|
||
|
case "$1" in
|
||
|
start)
|
||
|
echo "pureftpd wird gestartet ..."
|
||
|
cd /usr/local/pure-ftpd/current
|
||
|
./sbin/pure-ftpd &
|
||
|
;;
|
||
|
stop)
|
||
|
echo "pureftpd wird heruntergefahren ..."
|
||
|
kill -TERM `cat /var/run/pure-ftpd.pid`
|
||
|
;;
|
||
|
*)
|
||
|
echo "Usage: $0 {start|stop}"
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
exit 0
|
||
|
|
||
|
chmod 755 /etc/init.d/pure-ftpd Rechte setzen
|
||
|
cd /etc/rc5.d Verzechnis wechseln
|
||
|
ln -s ../init.d/pure-ftpd S20pure-ftpd Link zum automatischen Starten
|
||
|
cd /etc/rc0.d Verzechnis wechseln
|
||
|
ln -s ../init.d/pure-ftpd K20pure-ftpd Link zum automatischen Beenden
|
||
|
cd /etc/rc6.d Verzechnis wechseln
|
||
|
ln -s ../init.d/pure-ftpd K20pure-ftpd Link zum automatischen Beenden
|
||
|
useradd -g wwwadmin -d /srv -s /bin/false wwwadmin
|
||
|
Benutzer wwwadmin anlegen
|
||
|
passwd wwwadmin Passwort setzen
|
||
|
|
||
|
NoAnonymous yes
|
||
|
UnixAuthentication yes
|
||
|
MinUID 1000
|
||
|
MinUID 1000
|
||
|
TrustedGID 1002
|
||
|
|
||
|
|
||
|
exit root abmelden
|
||
|
\end{verbatim}
|
||
|
|