• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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