DEV Community

Alexander Omorokunwa
Alexander Omorokunwa

Posted on • Originally published at fossnaija.com on

1 1

Get root Privileges Using the sudo Command.

sudo_command_banner

The sudo command

The sudo (super do) command in Linux is used to give certain user(s) only a few super (root/administrator) permissions. And with those granted permissions a regular user can issue root commands to carry out any administrative tasks on the system.

If you want to use sudo to run commands as a regular user, you’d prepend the sudo command to the command you intend to execute using this format:

sudo <command>
Enter fullscreen mode Exit fullscreen mode

For example trying to install any application (without sudo command) would return an error because such privilege is left for the root user;

sudo_command

When a user enters the sudo command into the terminal, he must provide an authentic password, after which he can reuse that command without entering a password for a specific period of time (five minutes is the default).

When an unauthorized user attempts to use a sudo command, an error is returned by the terminal and its logged by the system. This log can help a Linux system administrator to monitor it usage on the system.

Happy Linux’NG!

The post Get root privileges using the sudo command. appeared first on Foss Naija.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay