News:

SMF - Just Installed!

Main Menu

How to set Security Policy in Plesk via CLI?

Started by Suhitha, Aug 29, 2025, 02:57 AM

Previous topic - Next topic

Suhitha

Question

How to set Security Policy in Plesk via CLI?


Answer

To configure Minimum password strength, you may use server_pref command:

# plesk bin server_pref -u -min_password_strength medium
Additional options:
  • very_weak
  • weak
  • medium
  • strong
  • very_strong

To configure FTPS usage policy, use ftp-over-ssl flag:

plesk bin server_pref -u [color=brown]-ftp-over-ssl[/color] enabled

Additional options:


  • disabled (Allow only non-secure FTP connections. Do not use FTPS)
  • enabled Allow both secure FTPS and non-secure FTP connections
  • required (Allow only secure FTPS connections)