Personal tools

Difference between revisions of "Pure-ftpd"

From MohidWiki

Jump to: navigation, search
(Install)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
==Install==
 
==Install==
This is a fedora core installation
+
This is a fedora core installation. No anonymous allowed. Virtual users only (created with the '''pure-pw useradd''' command).
 
  > yum install pure-ftpd
 
  > yum install pure-ftpd
 
  > vim /etc/rc.d/rc.local
 
  > vim /etc/rc.d/rc.local
Line 13: Line 13:
 
  > groupadd ftpgroup
 
  > groupadd ftpgroup
 
  > useradd -g ftpgroup -d /dev/null -s /etc ftpuser
 
  > useradd -g ftpgroup -d /dev/null -s /etc ftpuser
  > pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
+
  > pure-pw useradd joe -u ftpuser -d /ftp/ftpusers/joe -m
> pure-pw mkdb
+
  > /usr/sbin/pure-ftpd -E -l puredb:/etc/pure-ftpd/pureftpd.pdb &
  > /usr/sbin/pure-ftpd -l puredb:/etc/pure-ftpd/pureftpd.pdb &
 
 
  > ftp localhost
 
  > ftp localhost
 
Fiuu, that was a long one!  
 
Fiuu, that was a long one!  
  
 
===Add a new ftp user===
 
===Add a new ftp user===
  > pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
+
  > pure-pw useradd joe -u ftpuser -d /ftp/ftpusers/joe -m
  > pure-pw mkdb
+
  > ps aux | grep ftpd
 +
> kill ''pid number''
 +
> /usr/sbin/pure-ftpd -E -l puredb:/etc/pure-ftpd/pureftpd.pdb &
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 12:10, 11 February 2009

Pure-ftpd is a standard secure ftp client for linux.

Install

This is a fedora core installation. No anonymous allowed. Virtual users only (created with the pure-pw useradd command).

> yum install pure-ftpd
> vim /etc/rc.d/rc.local
rc.local> /usr/sbin/pure-ftpd -E -l puredb:/etc/pure-ftpd/pureftpd.pdb &
>  vim /etc/pure-ftpd/pure-ftpd.conf
pure-ftpd.conf>
ChrootEveryone              yes
NoAnonymous                 yes
PureDB                      /etc/pure-ftpd/pureftpd.pdb
> groupadd ftpgroup
> useradd -g ftpgroup -d /dev/null -s /etc ftpuser
> pure-pw useradd joe -u ftpuser -d /ftp/ftpusers/joe -m
> /usr/sbin/pure-ftpd -E -l puredb:/etc/pure-ftpd/pureftpd.pdb &
> ftp localhost

Fiuu, that was a long one!

Add a new ftp user

> pure-pw useradd joe -u ftpuser -d /ftp/ftpusers/joe -m
> ps aux | grep ftpd
> kill pid number
> /usr/sbin/pure-ftpd -E -l puredb:/etc/pure-ftpd/pureftpd.pdb &