nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

Adding spice to your sudo session with a lecture file on Linux or Unix

Posted: 14 Feb 2021 02:37 AM PST

groot
Despite some severe bugs in sudo, it remains the defacto tool to gain root shell or run command as another user on Linux, macOS, and Unix-like systems. The sudo command allows the system administrator to grant an individual user access to unprivileged commands. For instance, I can give developers the ability to restart the Apache webserver or PHP/Python process on a Linux server. Let us see how to remind developers and unprivileged users about the power of sudo for fun and profit. In this quick tip, I will show you how to add some spice to your sudo session with a lecture file on Linux or Unix.

The post Adding spice to your sudo session with a lecture file on Linux or Unix appeared first on nixCraft.

How to reset WordPress password using MySQL CLI

Posted: 13 Feb 2021 06:58 AM PST

How to reset WordPress password using MySQL CLI

So bizarrely, I forgot my WordPress admin password, including my login name. I did not add my login details to my password manager either. The container image that I built lacking outgoing email support (SMTP) too. I got stuck. Fortunately, I have full root access to my MySQL/MariaDB server hosted at AWS EC2, and here is how to reset a forgotten WordPress password using MySQL command-line.

The post How to reset WordPress password using MySQL CLI appeared first on nixCraft.