A practical guide to working with sudo
tech-couch.com·9h
Flag this post

Why do we need sudo?

The word sudo is an abbreviation for “superuser do” and is used to run commands as the root user. Commands that require elevated privileges like installing or updating packages or changing services can be run by an unprivileged user through this tool, allowing convenient administrative access without being permanently logged into a privileged account.

It also helps operators make an educated guess at the potential security issues and blast radius of running commands or scripts, as not running them through sudo ensures that the entire script will run with use privileges only, cut off from deeper system access.

Basic usage

The sudo command comes preinstalled on almost every linux distribution. The configuration is stored in /etc/sudoers, but you sho…

Similar Posts

Loading similar posts...