We just migrated one of our machines to a new box. Same web host, but new IP and physical machine.
I've found a lot of the databases are using a generic dbuser/pw combo. With the new server, I want to implement a more secure policy that all dbs need to have their own users, rather than a user that has global db privileges.
Is there a way to search all the servers' web docs (Everything below /var/www/vhosts/) for references to a specific db username in any files?
Is this a job for grep? Or is there a better solution?