Proftd com Banco de Dados
Publicado por Lobo 09/05/2004
[ Hits: 5.428 ]
Script SQL de criacao do banco de dados a ser utilizado com o conf que publiquei sobre Proftpd baseado em banco de dados.
Nao esqueca de alterar a senha no script antes de roda-lo.
USE mysql;
REPLACE INTO user (host, user, password)
VALUES (
'localhost',
'proftpd',
-- IMPORTANT: Change this password!
PASSWORD('senha')
);
REPLACE INTO db (host, db, user, select_priv, insert_priv, update_priv,
delete_priv, create_priv, drop_priv)
VALUES (
'localhost',
'proftpd',
'proftpd',
'Y', 'Y', 'Y', 'Y',
'Y', 'Y'
);
FLUSH PRIVILEGES;
CREATE DATABASE proftpd;
USE proftpd;
CREATE TABLE groups (
groupid varchar(10) NOT NULL default '',
gid int(10) unsigned NOT NULL auto_increment,
members varchar(255) NOT NULL default '',
PRIMARY KEY (gid)
) TYPE=MyISAM;
--
-- Dumping data for table 'groups'
--
GRANT SELECT, INSERT, UPDATE, DELETE ON groups TO proftpd@localhost;
INSERT INTO groups VALUES ('ftpusers',15000,'');
--
-- Table structure for table 'users'
--
CREATE TABLE users (
userid varchar(16) NOT NULL default '',
uid int(10) unsigned NOT NULL auto_increment,
gid int(10) unsigned NOT NULL default '0',
passwd varchar(255) NOT NULL default '',
description varchar(255) NOT NULL default '',
disabled int(10) unsigned NOT NULL default '0',
shell varchar(20) NOT NULL default '',
expires datetime NOT NULL default '0000-00-00 00:00:00',
email varchar(255) NOT NULL default '',
name varchar(255) NOT NULL default '',
ul_bytes bigint(20) NOT NULL default '0',
dl_bytes bigint(20) NOT NULL default '0',
login_count bigint(20) NOT NULL default '0',
dl_count bigint(20) NOT NULL default '0',
ul_count bigint(20) NOT NULL default '0',
last_login datetime default NULL,
homedir varchar(50) binary default NULL,
PRIMARY KEY (uid)
) TYPE=MyISAM;
GRANT SELECT, INSERT, UPDATE, DELETE ON users TO proftpd@localhost;
--
-- Dumping data for table 'users'
--
Nmap,traceroute,ssh,ftp e nbtscan, tudo junto nesse script basicão.
Bloquear contas em servidor Zimbra após 45 dias
Script para fazer download no rapidshare com conta premium
Nenhum comentário foi encontrado.
Porque Gentoo semi-binário atualmente (desabafo)
A combinação de WMs com compositores feitos por fora
Audacious, VLC e QMMP - que saudades do XMMS
SUNO OpenSource: Crie um servidor de gerador de música com IA
Instalando SVP4 e MPV (VapourSynth) no Gentoo
Migração do KDE Plasma para Cinnamon no Gentoo (com systemd) + Tema Colloid
Como desativar a economia de energia no Gentoo (Systemd, Wi-Fi, USB e SSH)
Linux mint cinnamon travando. (2)
Vulkan Gaming no Slackware [RESOLVIDO] (14)









