banner



How To Add Folders To Home In Ubuntu 18.04

How To Add a User and Grant Root Privileges on Ubuntu xviii.04

Posted on past

Justin Palmer | Updated:

Adding a user and granting that user root privileges is ane of the many tasks of a system admin.  In one case a user has been added and granted root privileges they'll be able to login to your Ubuntu VPS and perform vital functions for the upkeep of the organization. Subsequently, they'll be able to employ sudo before commands to perform elevated tasks.  In this quick tutorial, we'll show you lot how to add a new user and grant root permissions.

How To Add a User and Grant Root Privileges on Ubuntu 18.04

Preflight

  • These instructions are intended specifically for adding a user on Ubuntu 18.04 LTS.
  • We'll be working from a Liquid Web Core Managed Ubuntu 18.04 LTS server, and I'll exist logged in equally root.

Footstep 1: Add the Username

In my example, I'll exist adding my cat's name, Tom, using the adduser command. Supplant tom with your desired username. During this time, the system volition also ask of me details from my user.  Feel free to skip these details by pressing enter and eventually it asks us to confirm that the info is correct, leading us to a new user added.

adduser tom

Example Output:
Calculation user `tom' ...
Calculation new group `tom' (1001) ...
Adding new user `tom' (1001) with group `tom' ...
Creating home directory `/home/tom' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Irresolute the user information for tom
Enter the new value, or press ENTER for the default
Full Proper noun []: Tom
Room Number []:
Work Phone []:
Abode Phone []:
Other []:
Is the information correct? [Y/n] Y

Step 2: Grant Root Privileges to the User

visudo

The command above leads us to the /etc/sudoers.tmp file, where we can view the following code:# User privilege specification
root    ALL=(ALL:ALL) ALL

Later the root user line, y'all will add in your new user with the same format for us to grant admin privileges.

tom ALL=(ALL:ALL)ALL

In one case you've added the permission, save and get out the file by using the post-obit process. (In Ubuntu 18.04, nano is the default editor, and then we demand to use thectrl+x, y keystrokes to save and exit the file.)

                concord `ctrl` and press `x`. At the prompt, press `y` and so hit `enter` to relieve and exit the file.              

Step three: Verify User Has Privileges

If you lot've followed the instructions correctly and so this user will be able to run commands like, update, using the sudo:

su - tom

sudo apt-get update

Desire to do admin tasks through a control panel? Check out our servers that come up with cPanel.  Nosotros offer assisted migrations and 24/vii support making it effortless to switch to Liquid Spider web!

Avatar for Justin Palmer

About the Author: Justin Palmer

Justin Palmer is a professional application developer with Liquid Web

Refer a Friend
Get 33% off the first 3 months on a new VPS!

Our Sales and Support teams are bachelor 24 hours past phone or e-mail service to aid.

1.800.580.4985

1.517.322.0434

How To Add Folders To Home In Ubuntu 18.04,

Source: https://www.liquidweb.com/kb/add-user-grant-root-privileges-ubuntu-18-04/

Posted by: scottuporthe.blogspot.com

0 Response to "How To Add Folders To Home In Ubuntu 18.04"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel