Quick way to get wordpress passwords created by script

i created 10 wordpress sites using the wordpress script in virtualmin. how do i get a listing of the users and initial wordpress password that were created?
| OS type and version | AlmaLinux 8.8 |
| Webmin version | 2.202 |
| Virtualmin version | 7.20.2 |
| Webserver version | Apache version 2.4.37 |

Hello,

Try something like this:

virtualmin list-scripts --all-domains --multiline --type wordpress | grep -iE 'url|login|password' | sed -e 's/password.*/&\n/' -e '/URL/{x;p;x;}'
1 Like

Is Virtualmin storing the passwords for WordPress installs?

If the user has configured Virtualmin to use hashed passwords (via option in the Post Install Wizard or elsewhere) then the password is stored by Virtualmin in encrypted form for the database and Virtualmin user. Else the same are stored by Virtualmin in plain text (eek!).

WordPress admin password is probably not stored by Virtualmin except long enough to send it immediately via email notification, after the install of WordPress via the script installer. The password is, however, stored in hashed form by WordPress in its own database, of course.

Yes, we do store the initially generated password for the WordPress admin area, but it’s only visible to the root user or the domain owner with specific rights.

This doesn’t relate to scripts (web apps), though. We do this with good intentions, as a user might lose the initial password and get locked out of the installed script.

Currently, I can get the password by going to manage web apps and clicking wordpress and it displays the initial login credentials.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.