Discover How To Learn Tips And Tricks HOWTOs
How to create a new user with admin privileges on Linux
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.