mirroir readonly du Gitit wiki.evolix.org (attention, ne rien commiter/merger sur ce dépôt) https://wiki.evolix.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HowtoPureFtpd.md 554 B

3 years ago
3 years ago
3 years ago
12345678910111213141516171819202122232425262728
  1. # How To pure-ftpd
  2. ## Changer mot de passe compte
  3. ~~~{.bash}
  4. $ pure-pw passwd USER
  5. ~~~
  6. ### Si base MySQL
  7. ~~~{.bash}
  8. $ mysql -e 'SELECT User,Password FROM BASEPURE.users WHERE Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R");' | cut -d' ' -f2 | grep USER
  9. $ mysql -e "UPDATE BASEPURE.users SET Password=MD5('hawbOng\ocov6') WHERE User='USER';"
  10. ~~~
  11. ## Lister les sessions en cours
  12. ~~~{.bash}
  13. pure-ftpwho -H
  14. ~~~
  15. ## Ajout d'un utilisateur virtuel
  16. ~~~
  17. mkdir /home/ftp/foo/
  18. pure-pw useradd foo -d /home/ftp/foo/ -u 110 -g 65534
  19. pure-pw mkdb
  20. ~~~