Close Menu
  • Home
  • Questions
Facebook X (Twitter) Instagram
LinuxTutorials.netLinuxTutorials.net
  • Home
  • Debian
  • Ubuntu
  • CentOS
    • Commands
  • Questions
LinuxTutorials.netLinuxTutorials.net
Ubuntu

Create New User with sudo Privileges on Ubuntu 22.04/Debian

September 12, 2022Updated:September 12, 2022No Comments

The sudo command provides privileges that only the root account has. In this article, I will guide you to create a Linux User and assign it using the sudo command on Ubuntu 22.04/Debian.

Step 1: Create <new_user> account with adduser command:

adduser <new_user>

On Ubuntu/Debian, you don’t need to use passwd command to set password for new user, the adduser command will ask you to type new password for the new user shortly after.

Example: Create new linuxtutorials account:

[email protected]:~# adduser linuxtutorials
Adding user `linuxtutorials' ...
Adding new group `linuxtutorials' (1001) ...
Adding new user `linuxtutorials' (1001) with group `linuxtutorials' ...
Creating home directory `/home/linuxtutorials' ...
Copying files from `/etc/skel' ...
New password:	Type New password
Retype new password:	Re-type New password
passwd: password updated successfully
Changing the user information for linuxtutorials
Enter the new value, or press ENTER for the default
        Full Name []:	[Press Enter]
        Room Number []:	[Press Enter]
        Work Phone []:	[Press Enter]
        Home Phone []:	[Press Enter]
        Other []:		[Press Enter]
Is the information correct? [Y/n] y

Step 2: Assign the <new_user> account to the sudo group also using the adduser command.

adduser <new_user> sudo

Step 3: Switch login with new account to check

su - <new_user>
sudo ls -la
Ubuntu 22.04 Ubuntu Server
Share. Facebook Twitter Tumblr Email Telegram
Previous ArticleLinux Commands Cheat Sheet with Examples
Next Article How to Install PHPMyAdmin latest version 5.2.0 on Ubuntu 22.04 (LEMP Stack)

Related Posts

Ubuntu

Download and Install Packet Tracer 8.2.2 on Ubuntu (Linux)

May 31, 2024
Ubuntu

How to Install PHPMyAdmin latest version 5.2.0 on Ubuntu 22.04 (LEMP Stack)

September 13, 2022
Ubuntu

Install Nginx, PHP-FPM, MariaDB on Ubuntu 22.04 (LEMP Stack)

August 31, 2022
Subscribe
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Ubuntu Server 24.04 Image for VirtualBox (Download & Import)

March 14, 2025

Download and Install Packet Tracer 8.2.2 on Ubuntu (Linux)

May 31, 2024

How to Install PHPMyAdmin latest version 5.2.0 on Ubuntu 22.04 (LEMP Stack)

September 13, 2022

Create New User with sudo Privileges on Ubuntu 22.04/Debian

September 12, 2022
Facebook X (Twitter) Instagram Pinterest
  • Questions
© 2025 LinuxTutorials.net

Type above and press Enter to search. Press Esc to cancel.

wpDiscuz