{"id":34,"date":"2008-08-26T09:24:21","date_gmt":"2008-08-26T07:24:21","guid":{"rendered":"http:\/\/wp1.fredptitgars.net\/index.php\/2008\/08\/26\/proftpd\/"},"modified":"2008-08-26T09:24:21","modified_gmt":"2008-08-26T07:24:21","slug":"proftpd","status":"publish","type":"post","link":"https:\/\/fredptitgars.ovh\/?p=34","title":{"rendered":"proftpd"},"content":{"rendered":"<p>proftpd serveur ftp<br \/>\n<br \/>le fichier de configuration se trouve l\u00e0:<br \/>\n<br \/>\/etc\/proftpd\/proftpd.conf (en document joint)<\/p>\n<p>La config est faite pour se connecter et s&rsquo;identifier \u00e0 une base mysql.<\/p>\n<p>la doc compl\u00e8te est l\u00e0: <a href=\"http:\/\/doc.ubuntu-fr.org\/proftpd_et_mysql\">doc ubuntu<\/a><\/p>\n<p>Nom de la base : proftpd<br \/>\n<br \/>mot de passe : password<\/p>\n<p>cr\u00e9ation de la base:<\/p>\n<p><code><br \/>\nCREATE DATABASE `proftpd`;<br \/>\nUSE proftpd;<br \/>\n<\/code><\/p>\n<p>cr\u00e9ation es tables<\/p>\n<p><code><br \/>\n<br \/>&mdash;&nbsp;<br \/>\n<br \/>&mdash;&nbsp;Table structure for table `ftpgroup`<br \/>\n<br \/>&mdash;&nbsp;<br \/>\nCREATE TABLE `ftpgroup` (<br \/>\n`groupname` varchar(16) NOT NULL DEFAULT '',<br \/>\n`gid` smallint(6) NOT NULL DEFAULT '5500',<br \/>\n`members` varchar(16) NOT NULL DEFAULT '',<br \/>\nKEY `groupname` (`groupname`)<br \/>\n) TYPE=MyISAM COMMENT='Table des groupes ProFTPD';<\/p>\n<p>&mdash;&nbsp;<br \/>\n<br \/>&mdash;&nbsp;Table structure for table `ftpquotalimits`<br \/>\n<br \/>&mdash;&nbsp;<br \/>\nCREATE TABLE `ftpquotalimits` (<br \/>\n`name` varchar(30) DEFAULT NULL,<br \/>\n`quota_type` enum('user','group','class','all') NOT NULL DEFAULT 'user',<br \/>\n`par_session` enum('false','true') NOT NULL DEFAULT 'false',<br \/>\n`limit_type` enum('soft','hard') NOT NULL DEFAULT 'soft',<br \/>\n`bytes_up_limit` float NOT NULL DEFAULT '0',<br \/>\n`bytes_down_limit` float NOT NULL DEFAULT '0',<br \/>\n`bytes_transfer_limit` float NOT NULL DEFAULT '0',<br \/>\n`files_up_limit` int(10) UNSIGNED NOT NULL DEFAULT '0',<br \/>\n`files_down_limit` int(10) UNSIGNED NOT NULL DEFAULT '0',<br \/>\n`files_transfer_limit` int(10) UNSIGNED NOT NULL DEFAULT '0'<br \/>\n) TYPE=MyISAM COMMENT='Table des quotas ProFTPD';<\/p>\n<p>&mdash;&nbsp;<br \/>\n<br \/>&mdash;&nbsp;Table structure for table `ftpquotatotal`<br \/>\n<br \/>&mdash;&nbsp;<br \/>\nCREATE TABLE `ftpquotatotal` (<br \/>\n`name` varchar(30) NOT NULL DEFAULT '',<br \/>\n`quota_type` enum('user','group','class','all') NOT NULL DEFAULT 'user',<br \/>\n`bytes_up_total` float NOT NULL DEFAULT '0',<br \/>\n`bytes_down_total` float NOT NULL DEFAULT '0',<br \/>\n`bytes_transfer_total` float NOT NULL DEFAULT '0',<br \/>\n`files_up_total` int(10) UNSIGNED NOT NULL DEFAULT '0',<br \/>\n`files_down_total` int(10) UNSIGNED NOT NULL DEFAULT '0',<br \/>\n`files_transfer_total` int(10) UNSIGNED NOT NULL DEFAULT '0'<br \/>\n) TYPE=MyISAM COMMENT='Table des compteurs des quotas ProFTPD';<\/p>\n<p>&mdash;&nbsp;<br \/>\n<br \/>&mdash;&nbsp;Table structure for table `ftpuser`<br \/>\n<br \/>&mdash;&nbsp;<br \/>\nCREATE TABLE `ftpuser` (<br \/>\n`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,<br \/>\n`userid` varchar(32) NOT NULL DEFAULT '',<br \/>\n`passwd` varchar(32) NOT NULL DEFAULT '',<br \/>\n`uid` smallint(6) NOT NULL DEFAULT '5500',<br \/>\n`gid` smallint(6) NOT NULL DEFAULT '5500',<br \/>\n`homedir` varchar(255) NOT NULL DEFAULT '',<br \/>\n`shell` varchar(16) NOT NULL DEFAULT '\/bin\/false',<br \/>\n`count` int(11) NOT NULL DEFAULT '0',<br \/>\n`accessed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',<br \/>\n`modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',<br \/>\n`LoginAllowed` enum('true','false') NOT NULL DEFAULT 'true',<br \/>\nPRIMARY KEY (`id`)<br \/>\n) TYPE=MyISAM COMMENT='Table des utlisateurs ProFTPD';<br \/>\n<\/code><\/p>\n<p>Cr\u00e9ation d&rsquo;un utilisateur avec les droit en lecture\/ecriture:<\/p>\n<p><code><br \/>\nGRANT SELECT, INSERT, UPDATE, DELETE ON proftpd.* TO 'proftpd'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;<br \/>\n<\/code><\/p>\n<p>Ajouter un utilisteur:<br \/>\n<code><br \/>\nINSERT INTO `ftpuser` ( `id`, `userid`, `passwd`, `uid`, `gid`, `homedir`, `shell`, `count`, `accessed` , `modified`, `LoginAllowed` ) VALUES ('', 'test', ENCRYPT('pwd'), '5500', '5500', '\/home\/ftp\/test', '\/bin\/false', '', '', '', 'true' );<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>proftpd serveur ftp le fichier de configuration se trouve l\u00e0: \/etc\/proftpd\/proftpd.conf (en document joint) La config est faite pour se connecter et s&rsquo;identifier \u00e0 une base mysql. la doc compl\u00e8te est l\u00e0: doc ubuntu Nom de la base : proftpd mot de passe : password cr\u00e9ation de la base: CREATE DATABASE `proftpd`; USE proftpd; cr\u00e9ation [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-config_pc"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=34"}],"version-history":[{"count":0,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions"}],"wp:attachment":[{"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}