Linux Security
    Linux Security
    Linux Security

    How to create a new user with admin privileges on Linux

    Date 23 Oct 2020
    2138
    Posted By Brittany Day
    Istock 1276708191

    In this tutorial, Jack Wallen demonstrates how to easily add a new user with admin privileges on Linux.

     

    If you're a Linux system admin, you probably find yourself scrambling to keep everything in check every day. There's a lot to be done and doing this with a nod to security makes the task even more challenging. That's why you dole out tasks to those admins under you. After all, if you attempt to do everything yourself, eventually you're going to make a mistake, and mistakes can be disastrous in today's light speed world of business. You create new users on your Linux servers and let those admins do their thing.

    Problem is, when you create a new user, that user doesn't have admin privileges. What do you do? Let me show you. In fact, I'm going to walk you through the process of creating an admin-ready user on Linux with just a few quick commands. I'll demonstrate this on both Ubuntu Server 20.04 and CentOS 8, so you should be able to handle the task no matter what distribution you're on. 

    LinuxSecurity Poll

    How long have you been using Linux?

    No answer selected. Please try again.
    Please select either existing option or enter your own, however not both.
    Please select minimum 0 answer(s) and maximum 4 answer(s).
    /main-polls/46-how-long-have-you-been-using-linux?task=poll.vote&format=json
    46
    radio
    [{"id":"160","title":"Just made the switch!","votes":"1","type":"x","order":"1","pct":14.29,"resources":[]},{"id":"161","title":"1-5 years","votes":"0","type":"x","order":"2","pct":0,"resources":[]},{"id":"162","title":"6-10 years","votes":"0","type":"x","order":"3","pct":0,"resources":[]},{"id":"163","title":">10 years - I'm a veteran!","votes":"6","type":"x","order":"4","pct":85.71,"resources":[]}] ["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"] ["rgba(255,91,0,0.7)","rgba(74,192,242,0.7)","rgba(184,0,40,0.7)","rgba(238,246,108,0.7)","rgba(96,187,34,0.7)","rgba(185,106,154,0.7)","rgba(98,194,204,0.7)"] 350

    Please vote first in order to view vote results.


    VIEW MORE POLLS

    bottom 200

    Please enable / Bitte aktiviere JavaScript!
    Veuillez activer / Por favor activa el Javascript![ ? ]

    We use cookies to provide and improve our services. By using our site, you consent to our Cookie Policy.