Mass Password Change

3 posts / 0 new
Last post
#1 Wed, 09/07/2011 - 04:01
dragona

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

Wed, 09/07/2011 - 09:45
andreychek

Howdy,

You can do that, but you'd have to write some code to make it happen :-)

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 :-)

-Eric

Thu, 09/08/2011 - 08:01
dragona

Ok, I'll try to do something with some "for" in bash scripting.

Thanks

Topic locked