- Install the pure-ftpd package
zypper in pure-ftpd - Edit the /etc/pure-ftpd/pure-ftpd.conf file and modify and save the following directives with the values stated:
ChrootEveryone YES
Demonize YES
AnonymousOnly NO
NoAnonymos YES
PureDB /etc/pure-ftpd/pureftpd.pdb #(This line needs to be uncommented) - Create a UNIX dummy user account and a home directory for an authorised user
- Create a UNIX dummy account
useradd -s /dev/null ftpduser
- Create a chrooted ftp home directory for the authorised user (it can be anywhere on the system - just get the UNIX file permission/ownership correct)
mkdir /srv/ftp/ftpduser
chown -R ftpduser /srv/ftp/ftpduser
- Create a UNIX dummy account
- Creating and associating pure-ftpd virtual user account (we call it jim) to UNIX system account
pure-pw useradd jim -u ftpduser -d /srv/ftp/ftpduser- Then update the /etc/pure-ftpd/pureftpd.pdb database
pure-pw mkdb (required for each time user added/removed/modified)
* You may also do a one-to-one matching i.e. one virtual account to one UNIX account - but you may need to create multiple home directories. - Then update the /etc/pure-ftpd/pureftpd.pdb database
- Restart the pure-ftpd daemon and you are good to go. Ensure that the appropriate firewall port is opened.
Distribution Release: Emmabuntüs DE5-1.03
-
The DistroWatch news feed is brought to you by TUXEDO COMPUTERS. The
Emmabuntüs project is a desktop Linux distribution with editions based on
Debian's Sta...
3 hours ago
No comments:
Post a Comment