• Home
  • About Us
  • Privacy Policy
  • Contact Us
  • Disclaimer
  • Terms & Conditions
Journal Official
Advertisement
  • Home
  • Tech
    • All
    • Apps
    • Gadgets
    Google’s CFO just got promoted

    Google’s CFO just got promoted

    How Google’s latest AI model is generating music from your brain activity

    How Google’s latest AI model is generating music from your brain activity

    Easy Rider to Midnight Run, The Greatest Roadtrips Movies of All Time

    Easy Rider to Midnight Run, The Greatest Roadtrips Movies of All Time

    Three new Starfield animated shorts offer more glimpses of Bethesda’s new universe

    Three new Starfield animated shorts offer more glimpses of Bethesda’s new universe

    Some top AMD chips have a huge security flaw

    Some top AMD chips have a huge security flaw

    What is a Linux Bash Script and How Do You Build One?

    What is a Linux Bash Script and How Do You Build One?

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
  • Entertainment
  • Sports
  • CryptoCurrency
  • Business
  • Health and Lifestyle
    • All
    • Food
    World IVF Day: Infertility is a silent epidemic – why is it important to tackle fertility problems?  experts tell

    World IVF Day: Infertility is a silent epidemic – why is it important to tackle fertility problems? experts tell

    What is ‘duck walk’ in old age?  Expert shares tips on maintaining normal mobility

    What is ‘duck walk’ in old age? Expert shares tips on maintaining normal mobility

    Radiohead brands portfolio expands with the launch of Hustle™ energy drink.  Unveiled through new campaign “Dreams are free, #HustleModeOn for everything else – Food Marketing Technology”

    Radiohead brands portfolio expands with the launch of Hustle™ energy drink. Unveiled through new campaign “Dreams are free, #HustleModeOn for everything else – Food Marketing Technology”

    From Chris Gayle to Virat Kohli: Most runs scored by players in India vs West Indies ODI series

    From Chris Gayle to Virat Kohli: Most runs scored by players in India vs West Indies ODI series

    Infertility Treatment: How Ayurveda Can Help Increase Fertility?  experts tell

    Infertility Treatment: How Ayurveda Can Help Increase Fertility? experts tell

    Ishant Sharma opens up about the truth behind Zaheer Khan’s Test retirement and the allegations against Virat Kohli

    Ishant Sharma opens up about the truth behind Zaheer Khan’s Test retirement and the allegations against Virat Kohli

    Trending Tags

    • Golden Globes
    • Game of Thrones
    • MotoGP 2017
    • eSports
    • Fashion Week
No Result
View All Result
  • Home
  • Tech
    • All
    • Apps
    • Gadgets
    Google’s CFO just got promoted

    Google’s CFO just got promoted

    How Google’s latest AI model is generating music from your brain activity

    How Google’s latest AI model is generating music from your brain activity

    Easy Rider to Midnight Run, The Greatest Roadtrips Movies of All Time

    Easy Rider to Midnight Run, The Greatest Roadtrips Movies of All Time

    Three new Starfield animated shorts offer more glimpses of Bethesda’s new universe

    Three new Starfield animated shorts offer more glimpses of Bethesda’s new universe

    Some top AMD chips have a huge security flaw

    Some top AMD chips have a huge security flaw

    What is a Linux Bash Script and How Do You Build One?

    What is a Linux Bash Script and How Do You Build One?

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
  • Entertainment
  • Sports
  • CryptoCurrency
  • Business
  • Health and Lifestyle
    • All
    • Food
    World IVF Day: Infertility is a silent epidemic – why is it important to tackle fertility problems?  experts tell

    World IVF Day: Infertility is a silent epidemic – why is it important to tackle fertility problems? experts tell

    What is ‘duck walk’ in old age?  Expert shares tips on maintaining normal mobility

    What is ‘duck walk’ in old age? Expert shares tips on maintaining normal mobility

    Radiohead brands portfolio expands with the launch of Hustle™ energy drink.  Unveiled through new campaign “Dreams are free, #HustleModeOn for everything else – Food Marketing Technology”

    Radiohead brands portfolio expands with the launch of Hustle™ energy drink. Unveiled through new campaign “Dreams are free, #HustleModeOn for everything else – Food Marketing Technology”

    From Chris Gayle to Virat Kohli: Most runs scored by players in India vs West Indies ODI series

    From Chris Gayle to Virat Kohli: Most runs scored by players in India vs West Indies ODI series

    Infertility Treatment: How Ayurveda Can Help Increase Fertility?  experts tell

    Infertility Treatment: How Ayurveda Can Help Increase Fertility? experts tell

    Ishant Sharma opens up about the truth behind Zaheer Khan’s Test retirement and the allegations against Virat Kohli

    Ishant Sharma opens up about the truth behind Zaheer Khan’s Test retirement and the allegations against Virat Kohli

    Trending Tags

    • Golden Globes
    • Game of Thrones
    • MotoGP 2017
    • eSports
    • Fashion Week
No Result
View All Result
Journal Official
No Result
View All Result
Home Tech

Linux Security: What Is Sudo And Why Is It So Important?

admin by admin
May 16, 2023
in Tech
0
Linux Security: What Is Sudo And Why Is It So Important?
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


Getty Images / MiraJC

In the early days of Linux, things were exponentially more complicated. Distributions were much less mature, but they also required the use of a special system account to accomplish certain things. That account was root, and with it, unlimited power over your operating system.

Too: This Might Be the Perfect Introduction to the Official Ubuntu Spin Linux

To demonstrate the power of the root account, one trick you could always play on unsuspecting users was to ask them to replace themselves with the root user. su order And then let them issue the following:

The rm command is used to delete files and folders. With a combination of r (recursive) and f (force), you will delete everything from the root folder (/), thus rendering your system unusable.

Too: Can’t remember a Linux command you’ve run before? let history repeat itself

Thereafter, any commands requiring administrative privileges were run through the root user. To do this, you must either change to the root user (with the su command) or log in as the root user. Both of these options were ultimately considered a security problem. Why? If you logged in as the root user and walked away from your system, anyone could do anything they wanted. The same is true with changing to the root user and leaving a terminal window open.

Of course, it’s more complicated than that. Having root user access means that if a hacker gains access to your system, they can turn into the root user and wreak havoc on the machine.

Eventually, it was decided that something had to give. From that need Sudo was born. Sudo stands for “superuser do” and effectively gives a regular user (who belongs to the Administrators group) access to administrator-like powers. This solved two problems:

  • The root user can be disabled (so it can’t be easily leveraged).
  • Only users in the Administrators group (more on this in a bit) can run administrative tasks.

This was a significant step forward for Linux, which not only strengthened the security of the system but also made it easier for the users.

Too: best linux distribution for beginners

With sudo, users no longer need to change to the root user or log in to that account to run administrative commands (such as installing software). Users can run those administrator activities via sudo with the same effect as if they were run from the root user account. On top of that, it offers better control over who can do what on a given system. When attempting to run a command that required administrative privileges, the user only had to type in their user password (also known as their sudo password) and the command would go off without a hitch (so long as it was run properly). goes).

For example, instead of first changing the root user with su and then issuing the update/upgrade command on an Ubuntu-based distribution, you can simply issue the command:

sudo apt-get update
sudo apt-get upgrade -y

By running apt-get through sudo, the user is given temporary administrator privileges and can issue those commands successfully.

What about users who are not in the Administrators group?

Regarding the basics of using sudo, any user you want to grant access to that particular power must be a member of the Administrators group for that distribution. For example, on Ubuntu-based distributions, that group is sudo, whereas, on Red Hat-based distributions, that group is called wheel.

Too: How to Permanently Mount a Drive in Linux (and Why You Should)

If you have a user who is not a member of the Administrators group, when they try to run a command with sudo, they will see something like:

olivia is not in the sudoers file.  This incident will be reported.

How do you fix this? You add them to the Administrators group. So, for an Ubuntu-based distribution, the command to add a user to the Administrators group would be:

sudo usermod -aG sudo USER

where USER is the username in question.

On a Red Hat-based distribution (such as Fedora), that command would be:

sudo usermod -aG wheel USER

where USER is the username in question.

After running the command, the user must either log out and log back in, or make the system aware of the changes with the command:

Once a user has been added to the Administrators group, they can use sudo to run commands that require administrative privileges.

Too: Best Linux Laptops for Consumers and Developers

Sudo has made Linux not only more secure but also more user friendly. No longer needing to make changes to (or log in to) the root user account, avoids many serious security pitfalls and allows you to manage user access to administrator tasks.

Previous Post

Balancer can arbitrage itself to save inverse finance’s frozen crypto

Next Post

Bitcoin Bullish Structure Holds Firm: $31,000 Breakthrough Imminent?

admin

admin

Next Post
Bitcoin Bullish Structure Holds Firm: $31,000 Breakthrough Imminent?

Bitcoin Bullish Structure Holds Firm: $31,000 Breakthrough Imminent?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Journal Official

Welcome to our News Magazine Website, your go-to source for the latest and most compelling news around the Globe. Stay informed, stay inspired, and explore the world through our comprehensive and user-friendly platform.

Follow Us

Recent posts

  • Open Access vs. Subscription: Masa Depan Aksesibilitas Jurnal Akademik
  • Strategi Memilih Jurnal yang Tepat untuk Naskah Penelitian Anda
  • Peran Jurnal Terindeks Scopus: Mengapa Penting untuk Karier Akademik
  • Etika Penulisan Ilmiah: Menghindari Plagiarisme dan Pelanggaran Kode Etik
  • Memahami Proses Peer Review: Kunci Kualitas Publikasi Ilmiah

Recent News

Open Access vs. Subscription: Masa Depan Aksesibilitas Jurnal Akademik

December 7, 2025

Strategi Memilih Jurnal yang Tepat untuk Naskah Penelitian Anda

December 7, 2025
  • Home
  • About Us
  • Privacy Policy
  • Contact Us
  • Disclaimer
  • Terms & Conditions

© 2023 Journal Official - News Magazine

No Result
View All Result
  • Disclaimer

© 2023 Journal Official - News Magazine