MariaDB Administration and Least-Privilege Access

Turn a freshly installed MariaDB on server1 into an inventory database that an application on the client can use over TLS with exactly three privileges, no admin rights, and no way in from anywhere else.

Skill labintermediate~55 minPro

What you'll do

  • ✓Administer MariaDB as root over the Unix socket and remove the package's anonymous and test access
  • ✓Load a fixture with SOURCE and create an account whose identity includes the client's address
  • ✓Grant SELECT, INSERT and UPDATE on one database and nothing else, and read it back with SHOW GRANTS
  • ✓Bind to one address, require TLS for the account, and open 3306 to the client alone
  • ✓Connect from the client with a root-only credentials file and prove the limits with denied statements

Lab outline

  1. 01Two machines, one database
  2. 02Administer on server1
  3. 03Use it from the client

Before you start

  • firewalld Zones and Least-Privilege Access
  • Filesystems and Persistent UUID Mounts
  • Time Zones and Reliable Time Synchronization

Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.

← All Linux System Administration labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

MariaDB Administration and Least-Privilege Access — Linux lab | Kube Labs