pure-ftpd pure-pw

|
pure-ftpd pureftpd.pdb 方式管理用户
FreeBSD 下安装很方便
cd /usr/ports/ftp/pure-ftpd
make config // 勾选所需功能
make install clean
配置文件在 /usr/local/etc
新增一个用户
pure-pw useradd game -d /path/to -g www -u www -t 100 -T 500 -m
pure-pw mkdb /path/to/pureftpd.pdb

pure-pw list
pure-pw show game
tel-a# pure-pw show game

Login              : game
Password           : $2a$07$On9ameVDGPvsQwuMikYGEuzqlIwL8pAv0eaDV9YojQ/ZWl3cI/nhG
UID                : 80 (www)
GID                : 80 (www)
Directory          : /path/to/./
Full name          :
Download bandwidth : 100 Kb (enabled)
Upload   bandwidth : 500 Kb (enabled)
Max files          : 0 (unlimited)
Max size           : 0 Mb (unlimited)
Ratio              : 0:0 (unlimited:unlimited)
Allowed local  IPs :
Denied  local  IPs :
Allowed client IPs :
Denied  client IPs :
Time restrictions  : 0000-0000 (unlimited)
Max sim sessions   : 2 (enabled)

再有什么,参考下面
pure-pw useradd <login> [-f <passwd file>] -u <uid> [-g <gid>]
                -D/-d <home directory> [-c <gecos>]
                [-t <download bandwidth>] [-T <upload bandwidth>]
                [-n <max number of files>] [-N <max Mbytes>]
                [-q <upload ratio>] [-Q <download ratio>]
                [-r <allow client ip>/<mask>] [-R <deny client ip>/<mask>]
                [-i <allow local ip>/<mask>] [-I <deny local ip>/<mask>]
                [-y <max number of concurrent sessions>]
                [-z <hhmm>-<hhmm>] [-m]

pure-pw usermod <login> -f <passwd file> -u <uid> [-g <gid>]
                -D/-d <home directory> -[c <gecos>]
                [-t <download bandwidth>] [-T <upload bandwidth>]
                [-n <max number of files>] [-N <max Mbytes>]
                [-q <upload ratio>] [-Q <download ratio>]
                [-r <allow client ip>/<mask>] [-R <deny client ip>/<mask>]
                [-i <allow local ip>/<mask>] [-I <deny local ip>/<mask>]
                [-y <max number of concurrent sessions>]
                [-z <hhmm>-<hhmm>] [-m]

pure-pw userdel <login> [-f <passwd file>] [-m]

pure-pw passwd  <login> [-f <passwd file>] [-m]

pure-pw show    <login> [-f <passwd file>]

pure-pw mkdb    [<puredb database file> [-f <passwd file>]]

pure-pw list    [-f <passwd file>]

-d <home directory> : chroot user (recommended)
-D <home directory> : don't chroot user
-<option> '' : set this option to unlimited
-m : also update the /usr/local/etc/pureftpd.pdb database
For a 1:10 ratio, use -q 1 -Q 10
To allow access only between 9 am and 6 pm, use -z 0900-1800

About this Entry

This page contains a single entry by 清茶 published on November 14, 2007 10:16 PM.

番茄是最好的防晒食物 was the previous entry in this blog.

squid 优化指南[zz] is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.31-zh-cn