Mass Password Change

Hi,

after that somebody have changed all index pages on my server via FTP I want change all FTP password.

How can do it via shell with some bash lines?

Thanks

Howdy,

You can do that, but you’d have to write some code to make it happen :slight_smile:

You can use the command “virtualmin change-password USERNAME” in order to change a password.

So what you’d need to do is create a script to loop through all the usernames on your system, and run that command for each one of them.

You can use the command “virtualmin list-domains” to get a list of all domains, and the command “virtualmin list-users --domain DOMAIN_NAME” to get a list of users within a given domain.

All that’s needed then is just some code to tie all that together :slight_smile:

-Eric

Ok, I’ll try to do something with some “for” in bash scripting.

Thanks