特殊:Badtitle/NS100:PureFTP/zh:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Liwey留言 | 贡献
无编辑摘要
Liwey留言 | 贡献
无编辑摘要
第15行: 第15行:
# Then using your favorite text editor create the file '''/etc/pure-ftpd/conf/UnixAuthentication''' containing only the string '''no''' without quotes.
# Then using your favorite text editor create the file '''/etc/pure-ftpd/conf/UnixAuthentication''' containing only the string '''no''' without quotes.
# 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'''
# 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'''
# After doing that open up pureadmin in the terminal.
# After doing that open up pureadmin in the terminal.<pre>gksudo pureadmin</pre> and stop firestarter if it is installed.
<pre>gksudo pureadmin
</pre>  
and stop firestarter if it is installed.


===== NOTES =====
===== NOTES =====

2008年3月26日 (三) 09:27的版本




{{#ifexist: :PureFTP/zh/zh | | {{#ifexist: PureFTP/zh/zh | | {{#ifeq: {{#titleparts:PureFTP/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:PureFTP/zh|1|-1|}} | zh | | }}

Pure-FTPD + pureadmin (Ftp server with gui)

Install Pure-FTPD with GUI

  1. Install the pure-ftpd package and the pureadmin package from the Universe Repository.
  2. 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'
  3. 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
  4. Then
    sudo groupadd ftpgroup
    and
    sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser
    in the terminal.
  5. Next create your ftpuser directory
    sudo mkdir /home/ftpusers
  6. Then to create a user directory for joe
    sudo mkdir /home/ftpusers/joe
    (you can create a directory for each ftp user)# Then to add user joe
    sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
  7. Then to create you user database
    sudo pure-pw mkdb
  8. Then
    sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd
    and
    sudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb
    and
    sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB
    which will create symbolic links between the respective files.
  9. Then using your favorite text editor create the file /etc/pure-ftpd/conf/UnixAuthentication containing only the string no without quotes.
  10. 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
  11. After doing that open up pureadmin in the terminal.
    gksudo pureadmin
    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. Original Ubuntu Forums thread: http://ubuntuforums.org/showthread.php?t=91052