Hallo iedereen
Heb gisteravond pureftpd op mijn webserver gezet. na veel gekloot doetie het eindelijk. Maar niet helemaal top. Hij start nl niet automatish met het systeem op.
Dan heb ik het volgende probleem ook nog, ik heb pureftpd geinstalleerd met MySQL. Nu kan ik dus inloggen met mijn username (van het systeem zelf) maar niet met de username die ik in database heb gecreeerd. Dan krijg ik deze error
Het password is met als md5 opgeslagen
pureftpd.conf ziet er als volgd uit
pureftpd-mysql.conf ziet er zo uit
En pure-ftpd.sh ziet er zo uit
Deze handleiding heb ik gevolrd
Wie kan mij helpen?
Heb gisteravond pureftpd op mijn webserver gezet. na veel gekloot doetie het eindelijk. Maar niet helemaal top. Hij start nl niet automatish met het systeem op.
Dan heb ik het volgende probleem ook nog, ik heb pureftpd geinstalleerd met MySQL. Nu kan ik dus inloggen met mijn username (van het systeem zelf) maar niet met de username die ik in database heb gecreeerd. Dan krijg ik deze error
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| Resolving host name 10.0.0.5...
Connecting to (10.0.0.5) -> IP: 10.0.0.5 PORT: 21
Connected to (10.0.0.5) -> Time = 15ms
Socket connected waiting for login sequence.
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 11:49. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
USER senna
331 User senna OK. Password required
PASS (hidden)
530 Authentication failed, sorry
Cannot login waiting to retry (30s)... |
Het password is met als md5 opgeslagen
pureftpd.conf ziet er als volgd uit
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| # PureFTPd Configuration ChrootEveryone yes MaxClientsNumber 10 Daemonize yes MaxClientsPerIP 4 VerboseLog no DisplayDotFiles no AnonymousOnly no NoAnonymous yes SyslogFacility ftp FortunesFile /usr/local/etc/fortune.txt DontResolve no MaxIdleTime 15 PassivePortRange 45000 50000 ForcePassiveIP Mijn externe ip adres AntiWarez no Umask 117:007 MinUID 80 AllowUserFXP yes AllowAnonymousFXP no ProhibitDotFilesWrite yes ProhibitDotFilesRead yes AltLog clf:/var/log/pureftpd.log NoChmod yes CreateHomeDir yes MySQLConfigFile /usr/local/etc/pureftpd-mysql.conf |
pureftpd-mysql.conf ziet er zo uit
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| # PureFTPd MySQL configuration MYSQLSocket /tmp/mysql.sock MYSQLUser pureftpd MYSQLPassword Mijn password MYSQLDatabase pureftpd MYSQLCrypt md5 # In the following directives, parts of the strings are replaced at # run-time before performing queries : # # \L is replaced by the login of the user trying to authenticate. # \I is replaced by the IP address the user connected to. # \P is replaced by the port number the user connected to. # \R is replaced by the IP address the user connected from. # \D is replaced by the remote IP address, as a long decimal number. # # Very complex queries can be performed using these substitution strings, # especially for virtual hosting. #MYSQLGetUID SELECT uid FROM users WHERE username="\L" #MYSQLGetGID SELECT gid FROM users WHERE username="\L" MySQLDefaultUID www MySQLDefaultGID www MYSQLGetPW SELECT password FROM users WHERE username="\L" MYSQLGetDir SELECT homedir FROM users WHERE username="\L" MySQLGetBandwidthUL SELECT max_ul FROM users WHERE username="\L" MySQLGetBandwidthDL SELECT max_dl FROM users WHERE username="\L" MySQLTransactions On |
En pure-ftpd.sh ziet er zo uit
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| #!/bin/sh
case "$1" in
start)
/usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf
;;
stop)
killall pure-ftpd
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0 |
Deze handleiding heb ik gevolrd
Wie kan mij helpen?
Terwijl je andere plannen maakt