Linux, Security

Change admin passwords

System

sudo passwd root

MySQL

mysqladmin -u root -p password

PostgreSQL

sudo -u postgres psql -U postgres -h 127.0.0.1 -d postgres -c "ALTER USER postgres WITH PASSWORD 'newpassword';"

Gitlab

GLPI Project

mysql -u root -p -D glpi -e "update glpi_users set password='`php -r "echo password_hash('newpassword', PASSWORD_DEFAULT);"`' where name='glpi';"

Owncloud

sudo -u www-data php /var/www/html/owncloud/occ user:resetpassword admin

WordPress

mysql -u root -p -D wordpress -e "UPDATE wp_users SET user_pass=MD5('newpassword') WHERE ID=1 LIMIT 1;"