• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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