个人工具
登录
查看“UbuntuHelp:PureFTP”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:PureFTP”的源代码
来自Ubuntu中文
←
UbuntuHelp:PureFTP
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/PureFTP}} {{Languages|UbuntuHelp:PureFTP}} == Pure-FTPD + pureadmin (Ftp server with gui) == === Install ''Pure-FTPD'' with GUI === <ol><li>Install the ''pure-ftpd'' package and the ''pureadmin'' package from the Universe Repository. </li><li>Then use your favorite text editor and open up the '''/etc/inetd.conf''' file. Comment (add a '''#''' at the start of) the line containing 'ftp' </li><li>Again use your favorite text editor and open up the '''/etc/default/pure-ftpd-common''' file. Change '''STANDALONE_OR_INETD=inetd''' to '''STANDALONE_OR_INETD=standalone''' </li><li>Then <pre><nowiki> sudo groupadd ftpgroup </nowiki></pre> and <pre><nowiki> sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser </nowiki></pre> in the terminal. </li><li>Next create your ftpuser directory <pre><nowiki> sudo mkdir /home/ftpusers </nowiki></pre> </li><li>Then to create a user directory for joe <pre><nowiki> sudo mkdir /home/ftpusers/joe </nowiki></pre> (you can create a directory for each ftp user) </li><li>Then to add user joe <pre><nowiki> sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe </nowiki></pre> </li><li>Then to create you user database <pre><nowiki> sudo pure-pw mkdb </nowiki></pre> </li><li>Then <pre><nowiki> sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd </nowiki></pre> and <pre><nowiki> sudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb </nowiki></pre> and <pre><nowiki> sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB </nowiki></pre> which will create symbolic links between the respective files.</li></ol> 10. Then using your favorite text editor create the file '''/etc/pure-ftpd/conf/UnixAuthentication''' containing only the string '''no''' without quotes. 11. Next you need to modify the permissions of '''/home/ftpusers directory''' and of any other subdirectories. The owner must be '''ftpuser''' while Group must be '''ftpgroup''' 12. After doing that open up pureadmin in the terminal. <pre><nowiki> gksudo pureadmin </nowiki></pre> and stop firestarter if it is installed. ===== NOTES ===== The user '''joe''' is used as an example, you can change user '''joe''' and/or add or remove other users through pureadmin. You may need to restart PureFTPD before changes take effect. <pre><nowiki> sudo /etc/init.d/pure-ftpd restart </nowiki></pre> <<BR>> ---- === TROUBLESHOOTING === You may be given one of these warnings when trying to connect to your server: <pre><nowiki> [WARNING] Can't login as [joe]: account disabled </nowiki></pre> <pre><nowiki> "Sorry, but I can't trust you" </nowiki></pre> These two warnings occur if your system set the UserID (UID) and/or GroupID (GID) associated with the '''ftpuser''' user below 1000. To see what the current values are, type the following at a shell: <pre><nowiki> id ftpuser </nowiki></pre> You'll be given something similar to the following: <pre><nowiki> uid=572(ftpuser) gid=972(ftpgroup) groups=972(ftpgroup) </nowiki></pre> The actual numbers don't matter much, but they should be higher then 1000 for Pure-FTPD to be happy.<<BR>> To fix the UserID (UID) portion, open a shell and type: <pre><nowiki> sudo usermod -u 1021 -p -U ftpuser </nowiki></pre> To fix the GroupID (GID): <pre><nowiki> sudo groupmod -g 1022 ftpgroup </nowiki></pre> Restart the Pure-FTPD daemon and you should be up and running. <<BR>><<BR>> Original Ubuntu Forums thread: http://ubuntuforums.org/showthread.php?t=91052 <<BR>> Launch Pad Question: https://answers.launchpad.net/ubuntu/+source/pure-ftpd/+question/99048 [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:PureFTP
。