All Projects → digitalocean → debian-sys-maint-roll-passwd

digitalocean / debian-sys-maint-roll-passwd

Licence: GPL-3.0 license
Script to update password for MySQL user "debian-sys-maint"

Programming Languages

shell
77523 projects

Script

This script currently runs on:

  • Ubuntu 14.04
  • Ubuntu 16.04
  • Ubuntu 17.10
  • Debian 7
  • Debian 8

Debian 9 is not affected by this particular issue.

Running this script on end-of-life distributions such as Ubuntu 12.04 will fail. You are strongly urged to migrate deployed services to a supported distribution.

To apply the fix, simply download with:

wget -O fix.sh https://raw.githubusercontent.com/digitalocean/debian-sys-maint-roll-passwd/master/fix.sh

Once you have downloaded the script, you can run it with:

bash fix.sh

Explanation of the fix

The fix:

  • reads the current password for the debian-sys-maint user
  • updates /etc/mysql/debian.cnf to change the debian-sys-maint password to a random value.
  • updates the MySQL debian-sys-maint database password
  • restarts MySQL
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].