14 lines
292 B
Bash
14 lines
292 B
Bash
|
|
#!/bin/bash
|
||
|
|
groupadd ftpgroup
|
||
|
|
useradd -g ftpgroup -d /dev/null -s /etc ftpuser
|
||
|
|
pure-pw useradd yanbin -u ftpuser -d /ftphome
|
||
|
|
pure-pw mkdb
|
||
|
|
cd /etc/pure-ftpd/auth/
|
||
|
|
ln -s ../conf/PureDB 60pdb
|
||
|
|
mkdir -p /ftphome
|
||
|
|
chown -R ftpuser:ftpgroup /ftphome/
|
||
|
|
/etc/init.d/pure-ftpd restart
|
||
|
|
|
||
|
|
|
||
|
|
# ftp -s:ftp.txt
|