Ako na vlastný server – VI. (FTP)

Na vytvorenie vlastného FTP servera je vytvorených mnoho ftp serverov, my sa pozrieme na najpoužívanejší – proFTPD. Znova bude tento návod písaný pre distribúciu Debian.

V návode si ukážeme ako prepojiť proFTPD s MySQL.

1, Inštalácia
apt-get install proftpd proftpd-mysql

2, Tabuľka proFTPD v MySQL


CREATE TABLE IF NOT EXISTS `ftpgroup` (
`groupname` varchar(16) NOT NULL default '',
`gid` smallint(6) NOT NULL default '5500',
`members` varchar(16) NOT NULL default '',
KEY `groupname` (`groupname`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='ProFTP group table';
INSERT INTO `ftpgroup` (`groupname`, `gid`, `members`) VALUES
('ftpgroup', 5500, 'ftpuser'),
('ftpgroup', 5500, 'ftpguest');

CREATE TABLE IF NOT EXISTS `ftpuser` (
`id` int(10) unsigned NOT NULL auto_increment,
`userid` varchar(32) NOT NULL default '',
`passwd` varchar(32) NOT NULL default '',
`uid` smallint(6) NOT NULL default '5500',
`gid` smallint(6) NOT NULL default '5500',
`homedir` varchar(255) NOT NULL default '',
`shell` varchar(16) NOT NULL default '/sbin/nologin',
`count` int(11) NOT NULL default '0',
`accessed` datetime NOT NULL default '0000-00-00 00:00:00',
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
`webminuid` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='ProFTP user table' AUTO_INCREMENT=101 ;

INSERT INTO `ftpuser` (`userid`, `passwd`, `uid`, `gid`, `homedir`, `shell`) VALUES
('username', 'password', 5500, 5500, '/dir/', '/sbin/nologin');

3, Spojenie proFTPD s MySQL

# Password type
SQLAuthTypes Plaintext

# Authentication type
SQLAuthenticate users
# Use only SQL when authenticating, and not the system's /etc/passwd
# If the user's information is not in SQL, they're not a user to use
# this server.

AuthOrder mod_sql.c

# DB connect info. Format: database_name@server_address database_username database_password
SQLConnectInfo database@localhost username password

# Default UID/GID. Change to suit needs.
SQLDefaultUID 5500
SQLDefaultGID 5500

# Mininum UID/GID. Change to suit needs.
SQLMinUserUID 33
SQLMinUserGID 33

# Database query. Format: ** defined below **
SQLUserInfo ftpuser userid passwd uid gid homedir shell

5, Dôležitá konfigurácia

UseIPv6 off
DefaultRoot ~

4 373 Responses to “Ako na vlastný server – VI. (FTP)”

  1. I truly appreciate this article. Great….

    I think this is a real great article post.Really looking forward to read more. Awesome….

  2. hosting seo hovorí:

    Recommeneded website…

    below you’ll find the link to some sites that we think you should visit…

  3. hosting seo hovorí:

    Check this out…

    Here are some of the sites we recommend for our visitors…

  4. iPhone 5 hovorí:

    iPhone 5…

    [...]here are some links to sites that we link to because we think they are worth visiting[...]…

  5. [...]the time to read or visit the content or sites we have linked to below the[...]……

    [...]here are some links to sites that we link to because we think they are worth visiting[...]……

  6. Great Clips Coupons…

    [...]following are a few hyper-links to websites online which I link to for the fact we feel they are worthwhile browsing[...]…

  7. Read More…

    [...]…Great Post…[...]…

  8. hosting hovorí:

    Recommeneded websites…

    Here you’ll find some sites that we think you’ll appreciate, just click the links over…

  9. Great Clips Coupons…

    [...]following are a handful of urls to internet websites which I link to as we feel they will be seriously worth visiting[...]…

  10. News info…

    I was reading the news and I saw this really interesting topic…

  11. Great website…

    [...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]……

  12. buy tramadol hovorí:

    Links…

    [...]Sites of interest we have a link to[...]……

  13. Recommeneded websites…

    [...]Here are some of the sites we recommend for our visitors[...]……

  14. Great Clips Coupons…

    [...]here are a few url links to internet websites which I connect to seeing that we feel they’re worthwhile browsing[...]…

  15. ASD hovorí:

    Check this out…

    [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……

  16. Popcorn hovorí:

    Cool sites…

    [...]we came across a cool site that you might enjoy. Take a look if you want[...]……

  17. Great Clips Coupons…

    [...]below are a couple of web page links to web sites which we link to as we think they really are definitely worth browsing[...]…

  18. golden retriever hovorí:

    Related……

    [...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……

  19. Cheap Insurance hovorí:

    Recent Blogroll Additions……

    [...]usually posts some very interesting stuff like this. If you’re new to this site[...]……

  20. Check this out…

    [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……

  21. self help links hovorí:

    we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out…

    Here are some of the sites we recommend for our visitors…

  22. Not a chance……

    [...] Now any time a man or woman looks at the latest fashion assertion, it is normally measurement zero [...]…

  23. [...]The information mentioned in the article are some of the best available [...]……

    [...]below you’ll find the link to some sites that we think you should visit[...]……

  24. dog snuggie hovorí:

    Great website…

    [...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]……

  25. About Paralegal hovorí:

    Blogs ou should be reading…

    [...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]……

  26. Test only hovorí:

    Check this out……

    [...] ordinarily posts some very interesting stuff such as this. If you’re not used to this page [...]…

  27. Great website…

    [...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]……

  28. Awesome website…

    [...]the time to read or visit the content or sites we have linked to below the[...]……

  29. Awesome website…

    [...]the time to read or visit the content or sites we have linked to below the[...]……

  30. közösségi portálok…

    [...]while the sites we link to below are completely unrelated to ours, we think they are worth a read, so have a look[...]…

  31. Superb website…

    [...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]……

  32. Wazaif hovorí:

    Links…

    [...]Sites of interest we have a link to[...]……

  33. Online Article……

    [...]The information mentioned in the article are some of the best available [...]……

  34. tools for sale hovorí:

    Hello!…

    An interesting discussion is worth comment. I think that you should write more on this topic, it might not be a taboo subject but generally people are not enough to speak on such topics. To the next. Cheers…

  35. Thank you…

    I was very pleased to find this web-site.I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post….

  36. Fitness plan hovorí:

    Thank you…

    I was very pleased to find this web-site.I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post….

  37. hello…

    you have a great blog here! would you like to make some invite posts on my blog?…

  38. steel coffee cup hovorí:

    [...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]……

    [...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……

  39. Websites you should visit…

    [...]below you’ll find the link to some sites that we think you should visit[...]……

  40. home made energy hovorí:

    Online Article……

    [...]The information mentioned in the article are some of the best available [...]……

  41. long hair model hovorí:

    Great website…

    [...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]……

  42. Blogs ou should be reading…

    [...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]……

  43. Read More…

    [...]…Great Post…[...]…

  44. Great website…

    [...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]……

  45. Blogs ou should be reading…

    [...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]……

  46. Websites we think you should visit…

    [...]although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[...]……

  47. chat x hovorí:

    aba…

    ugg herren classic short schokoladencentimetres of surface area of the garment and the down to keep kids body warm and comfortable…

  48. Great blog…

    The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you coul…

  49. garmin nuvi 3590 hovorí:

    Check this out…

    [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……

  50. Pond Aerators hovorí:

    Superb website…

    [...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]……

Leave a Reply