Installa la nostra toolbar!
Howto / Ubuntu
addthis
Ubuntu - Configurare un server ftp con pure-ftpd e mysql
Author: Tafaz
Visits: 3634
Date: 15.06.2008



Configurazione MySQL:

Ora che pure-fptd è installato creiamo un utente in mysql, il database e la tabella utenti

tafaz@Imhotep:~$ mysql-uroot -p
CREATE database pureftpd;
GRANT ALL PRIVILEGES ON pureftpd.* TO 'pureftpd'@'localhost' IDENTIFIED BY 'pureftpdPasswd';
CREATE TABLE `users` (
  `User` varchar(16) NOT NULL default '',
  `status` enum('0','1') NOT NULL default '0',
  `Password` varchar(64) NOT NULL default '',
  `Uid` varchar(11) NOT NULL default '-1',
  `Gid` varchar(11) NOT NULL default '-1',
  `Dir` varchar(128) NOT NULL default '',
  `ULBandwidth` smallint(5) NOT NULL default '0',
  `DLBandwidth` smallint(5) NOT NULL default '0',
  `comment` tinytext NOT NULL,
  `ipaccess` varchar(15) NOT NULL default '*',
  `QuotaSize` smallint(5) NOT NULL default '0',
  `QuotaFiles` int(11) NOT NULL default '0',
  PRIMARY KEY  (`User`),
  UNIQUE KEY `User` (`User`)
) ENGINE=MyISAM;
quit;

una piccola carrellata sui campi:
User sarà il login dell'utente
status indica se l'utente è attivo o meno
Password non ha bisogno di spiegazioni
Uid lo user id dell'utente
Gid il group id dell'utente
Dir la home directory
ULBandwidth il limite di banda in upload
DLBandwidth il limite di banda in download
ipaccess l'ip che deve avere l'utente quando si collega oppure * per permettere l'accesso da qualsiasi ip
QuotaSize la quota massima espressa in MegaByte
QuotaFiles il numero massimo di file





<< Page 2 of 4 >>


Se vuoi discutere con noi su questo articolo o comunque vuoi porci delle domande usa il nostro Forum

COMMENTI

Aggiungi un commento! +
(I commenti verranno moderati prima della pubblicazione)

On 29.10.2009 Tafaz wrote:
Se pureftp non vi dovesse autenticare dando il seguente messaggio "530 Sorry, but I can't trust you" modificate il file /etc/pure-ftpd/conf/MinUID e impostatelo a 33 che è lo UserId di apache e con cui verranno autenticati gli utenti ftp


Top