“UbuntuHelp:PureFTP/zh”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第9行: | 第9行: | ||
# 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'''<br> | # 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'''<br> | ||
# Then<br><pre>sudo groupadd ftpgroup</pre>and<pre>sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser</pre>in the terminal. | # Then<br><pre>sudo groupadd ftpgroup</pre>and<pre>sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser</pre>in the terminal. | ||
− | # Next create your ftpuser directory<pre>sudo mkdir /home/ftpusers</pre | + | # Next create your ftpuser directory<pre>sudo mkdir /home/ftpusers</pre> |
# Then to create a user directory for joe <pre>sudo mkdir /home/ftpusers/joe</pre>(you can create a directory for each ftp user)# Then to add user joe <pre>sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe</pre> | # Then to create a user directory for joe <pre>sudo mkdir /home/ftpusers/joe</pre>(you can create a directory for each ftp user)# Then to add user joe <pre>sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe</pre> | ||
# Then to create you user database <pre>sudo pure-pw mkdb</pre> | # Then to create you user database <pre>sudo pure-pw mkdb</pre> | ||
− | # Then <pre>sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd</pre>and<pre>sudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb</pre | + | # Then <pre>sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd</pre>and<pre>sudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb</pre>and<pre>sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB</pre>which will create symbolic links between the respective files. |
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''' | 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''' |
2008年3月26日 (三) 09:24的版本
点击翻译: |
English • 中文 |
Pure-FTPD + pureadmin (Ftp server with gui)
Install Pure-FTPD with GUI
- Install the pure-ftpd package and the pureadmin package from the Universe Repository.
- 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'
- 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
- Then
sudo groupadd ftpgroup
andsudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser
in the terminal. - Next create your ftpuser directory
sudo mkdir /home/ftpusers
- 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 joesudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
- Then to create you user database
sudo pure-pw mkdb
- Then
sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd
andsudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb
andsudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB
which will create symbolic links between the respective files.
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.
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