• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Disable ssh system access on all domains

VictorA

New Pleskian
Hi,

I need to disable system access on all domains of my server (+300). Is there any way to run a command from Plesk database to do it?.

something like:

update dom_param set val = 'true' where param = '';
 
Victor,

You can find shell for all domains with

select shell from sys_users where id in (select sys_user_id from hosting);
And update with '/bin/false' in sys_users table.
 
Back
Top