-
Notifications
You must be signed in to change notification settings - Fork 11
/
ehcp_vsftpd.sh.txt
78 lines (59 loc) · 2.67 KB
/
ehcp_vsftpd.sh.txt
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# This file is no longer used in ehcp, left here for historical purposes.
log_ftp_protocol=YES
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
nopriv_user=vsftpd
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/vsftpd.pem
guest_enable=YES
guest_username=vsftpd
local_root=/home/vsftpd/$USER
user_sub_token=$USER
virtual_use_local_privs=YES
user_config_dir=/etc/vsftpd_user_conf
auth required pam_mysql.so user=vsftpd passwd=ftpdpass host=localhost db=vsftpd table=accounts usercolumn=username passwdcolumn=pass crypt=2
account required pam_mysql.so user=vsftpd passwd=ftpdpass host=localhost db=vsftpd table=accounts usercolumn=username passwdcolumn=pass crypt=2
auth required pam_mysql.so user=ehcp passwd=12345 host=localhost db=ehcp table=accounts usercolumn=username passwdcolumn=pass crypt=2
account required pam_mysql.so user=ehcp passwd=12345 host=localhost db=ehcp table=accounts usercolumn=username passwdcolumn=pass crypt=2
ok.
auth required pam_mysql.so user=ehcp passwd=12345 host=localhost db=ehcp table=ftpaccounts usercolumn=ftpusername passwdcolumn=password crypt=2
account required pam_mysql.so user=ehcp passwd=12345 host=localhost db=ehcp table=ftpaccounts usercolumn=ftpusername passwdcolumn=password crypt=2
ok.
CREATE TABLE `ftpaccounts` (
`id` int(11) NOT NULL auto_increment,
`ftpusername` varchar(30) NOT NULL,
`password` varchar(50) NOT NULL,
`domainname` varchar(40) default NULL,
`panelusername` varchar(30) default NULL,
`reseller` varchar(30) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`ftpusername`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Tablo d�k�m verisi `ftpaccounts`
--
INSERT INTO `ftpaccounts` (`id`, `ftpusername`, `password`, `domainname`, `panelusername`, `reseller`) VALUES (1, 'test', '*676243218923905CF94CB52A3C9D3EB30CE8E20D', NULL, NULL, NULL);
ok. bu haliyle calisti.
bu da calisti:
CREATE TABLE `ftpaccounts` (
`id` int(11) NOT NULL auto_increment,
`ftpusername` varchar(30) NOT NULL,
`password` varchar(50) NOT NULL,
`domainname` varchar(40) default NULL,
`panelusername` varchar(30) default NULL,
`reseller` varchar(30) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ftpusername` (`ftpusername`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Tablo d�k�m verisi `ftpaccounts`
--
INSERT INTO `ftpaccounts` (`id`, `ftpusername`, `password`, `domainname`, `panelusername`, `reseller`) VALUES (1, 'test', '*676243218923905CF94CB52A3C9D3EB30CE8E20D', NULL, NULL, NULL);