News:

SMF - Just Installed!

Main Menu

How to set Security Policy in Plesk via CLI?

Started by mahesh, Dec 06, 2024, 06:18 AM

Previous topic - Next topic

mahesh

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 -ftp-over-ssl 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)