How To Fix Error “Cannot open access to console, the root account is locked”

Author: , June 23rd, 2023

When trying to access the serial console on AWS, I got the following error: Cannot open access to console, the root account is locked Since I had edited /etc/fstab, the host would not boot. The only way to fix this problem is to unmount the root volume from the affected instance, mount it on another […]

How To Reset The MySQL 5.5 Server root Password

Author: , March 16th, 2022

Had an old server, needed to get root.

For MySQL 5.7: https://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html For some other v5.7 nodes, I had admin access via a different user’s login, so all I needed was this:

How To Block All Traffic From China Using iptables and ipset on Amazon Linux

Author: , October 24th, 2019

All credit to Matt Wilcox for this excellent article, for which this post is based – thank you, Matt! https://mattwilcox.net/web-development/unexpected-ddos-blocking-china-with-ipset-and-iptables/ All commands run as root!

Do this once only:

Then add blockchina to the root cron

How To Change the root Password on MacOS High Sierra

Author: , November 28th, 2017

Launch System Preferences Select Users & Groups Select Login Options Select Join next to Network Account Server Select Open Directory Utility Click the lock and enter your password to make changes In the menu bar of Directory Utility, select Change Root Password Create a strong, unique password

How To Reset the MySQL root Password

Author: , December 31st, 2013

update mysql.user set password=PASSWORD(‘Your New Password Here’) where user=’root’;

How To Reload sysctl.conf in Ubuntu

Author: , October 7th, 2013

sysctl -p /etc/sysctl.conf

How To Change The Root Password In MySQL

Author: , October 26th, 2011

Using mysqladmin on the command line If you have never set a root password for MySQL server, the server does not require a password at all for connecting as root.

To set the root password for the first time, use mysqladmin:

However, if you want to change (or update) a root password, then […]

How To Open A Root Finder Window In MacOSX Snow Leopard

Author: , August 14th, 2011

In the Terminal application, type the following: sudo /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder Then, click on an empty spot on your desktop – NOT in an existing Finder window. Now, type Command-N or select New Finder Window from the File menu. To end your root Finder session, type ^C in the Terminal window. Notes: You won’t be able to […]

How To Get root Access To An AWS Instance At Launch

Author: , August 3rd, 2011

First use SSH to login as the ec2-user:

erics@zeus:/Users/erics # ssh -i foo.pem ec2-user@thehost.foo Last login: Tue Nov 19 20:28:19 2013 from foo.bar __| __|_ ) _| ( / Amazon Linux AMI ___|\___|___| https://aws.amazon.com/amazon-linux-ami/2013.09-release-notes/ No packages needed for security; 7 packages available Run “sudo yum update” to apply all updates. [ec2-user@xyz ~]$ sudo su […]

How To Activate the Root User in MacOSX Leopard 10.5.x

Author: , September 8th, 2010

In Terminal, execute the following: [code]sudo password root[/code]