2017-08-23 09:30:23 +02:00
|
|
|
# How To pure-ftpd
|
|
|
|
|
|
|
|
## Changer mot de passe compte
|
|
|
|
|
|
|
|
~~~{.bash}
|
2017-08-23 09:50:27 +02:00
|
|
|
$ pure-pw passwd USER
|
|
|
|
~~~
|
|
|
|
|
|
|
|
### Si base MySQL
|
|
|
|
|
|
|
|
~~~{.bash}
|
2017-08-23 10:01:14 +02:00
|
|
|
$ mysql -e 'SELECT User,Password FROM BASEPURE.users WHERE Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R");' | cut -d' ' -f2 | grep USER
|
|
|
|
$ mysql -e "UPDATE BASEPURE.users SET Password=MD5('hawbOng\ocov6') WHERE User='USER';"
|
2017-08-23 09:32:08 +02:00
|
|
|
~~~
|
|
|
|
|
|
|
|
## Lister les sessions en cours
|
|
|
|
|
|
|
|
~~~{.bash}
|
|
|
|
pure-ftpwho -H
|
2017-10-30 08:55:26 +01:00
|
|
|
~~~
|
|
|
|
|
|
|
|
## Ajout d'un utilisateur virtuel
|
|
|
|
|
|
|
|
~~~
|
|
|
|
mkdir /home/ftp/foo/
|
|
|
|
pure-pw useradd foo -d /home/ftp/foo/ -u 110 -g 65534
|
|
|
|
pure-pw mkdb
|
|
|
|
~~~
|