{"id":18398,"date":"2022-09-05T12:08:22","date_gmt":"2022-09-05T12:08:22","guid":{"rendered":"https:\/\/linuxways.net\/?p=18398"},"modified":"2022-09-23T01:37:51","modified_gmt":"2022-09-23T01:37:51","slug":"ubuntu-22-04-add-user","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/ubuntu-22-04-add-user\/","title":{"rendered":"Ubuntu 22.04 Add User"},"content":{"rendered":"<p>Linux is a multi-user operating system that enables users to have their unique accounts, just like all other major operating systems. Each user has their home directory, settings, folders, and documents that are not accessible to other users. Therefore, adding a new user in Ubuntu is a basic task. Every Linux user should know how to create a new user account.<\/p>\n<p>In this article, we&#8217;ll go through how to create a new user on the Ubuntu 22.04 Jammy jellyfish distribution using both the graphical GUI and the command line method. In addition, we&#8217;ll cover how to grant sudo access to the user and if necessary how to remove the user from Ubuntu 22.04.<\/p>\n<h3><strong>Prerequisites<\/strong><\/h3>\n<p>You need administrative or root privileges to add new user accounts in Ubuntu 22.04 distribution.<\/p>\n<h2>How to Add a User in Ubuntu 22.04 Using Graphical Interface?<\/h2>\n<p>You can add a user in Ubuntu 22.04 system via the graphical interface by doing the following steps:<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"1125\" height=\"284\" class=\"wp-image-18403\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-1.png 1125w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-1-300x76.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-1-1024x259.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-1-768x194.png 768w\" sizes=\"auto, (max-width: 1125px) 100vw, 1125px\" \/><\/p>\n<ol>\n<li>Open the \u2018Activities\u2019 overview sections and start typing \u2018Users\u2019 in the application search bar:<\/li>\n<li>Open the settings panel by clicking on the \u2018User\u2019 icon.<\/li>\n<li>Click on the \u2018Unlock\u2019 from the top right corner of your desktop and type the login user password when prompted.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"983\" height=\"807\" class=\"wp-image-18413\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-2.png 983w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-2-300x246.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-2-768x630.png 768w\" sizes=\"auto, (max-width: 983px) 100vw, 983px\" \/><\/p>\n<ul>\n<li>Click on the \u2018Add user\u2019 button to add a user in Ubuntu 22.04.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"979\" height=\"700\" class=\"wp-image-18415\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-3.png 979w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-3-300x215.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-3-768x549.png 768w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/p>\n<ul>\n<li>Select the \u2018Administrator\u2019 account type if you want to create a user with administrative access to the system.<\/li>\n<\/ul>\n<p><strong>Note:<\/strong> The administrator accounts can do all administrative tasks like adding users, deleting users, assigning privileges to other users, installing drivers and software, and changing system settings.<\/p>\n<ol>\n<li>Now, enter the user\u2019s full name. The username will be automatically filled. However, if you want to assign a new username, you can change this proposed username.<\/li>\n<li>Select \u2018set password now\u2019 and choose a password for the new user. Again, enter the password for confirmation.<\/li>\n<li>Now, click on \u2018Add\u2019 to submit information for the new user.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"517\" height=\"550\" class=\"wp-image-18417\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-4.png 517w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-4-282x300.png 282w\" sizes=\"auto, (max-width: 517px) 100vw, 517px\" \/><\/p>\n<ul>\n<li>The new user is added successfully to your Ubuntu 22.04 system. You will see that a new account is listed in the \u2018Users\u2019.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"627\" class=\"wp-image-18418\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-5.png 721w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-5-300x261.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<h2>How to Add a User in Ubuntu 22.04 via Terminal?<\/h2>\n<p>You can add a new user in Ubuntu 22.04 system using the terminal or command line by executing the following steps:<\/p>\n<p>Open the command line application \u2018Terminal\u2019 by using the keyboard shortcut \u2018Ctrl+Alt +t\u2019. You can also launch the terminal from the application menu.<\/p>\n<p>Now, create a new user account. Execute the \u2018adduser\u2019 command on the terminal to add a new user in Ubuntu 22.04.<\/p>\n<pre>\r\n$ adduser user_name\r\n<\/pre>\n<p>Replace the \u2018user_name\u2019\u00a0 with your new user account name. For example, here we are adding a new user account with the name \u2018guestuser\u2019.<\/p>\n<pre>\r\n$ adduser guestuser\r\n<\/pre>\n<p>Enter the \u2018sudo\u2019 password for adding a new user. Enter the password for adding a new user account. Type and retype the password for adding a user. Enter account details for a new user account or press \u2018Enter\u2019 to continue with the default options.<\/p>\n<p>Next, you will be required to confirm the above input information by providing with <strong>Y\/n<\/strong> option. Enter \u2018y\u2019 to confirm this new user account.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"362\" class=\"wp-image-18419\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-6.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-6-300x149.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<p>Finally, you added a new user in Ubuntu 22.04 system.<\/p>\n<p>You can also verify the newly added user account by using the following command:<\/p>\n<pre>\r\n$ cat \/etc\/passwd | grep [username]\r\n\r\n$ cat \/etc\/passwd | grep guestuser\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"59\" class=\"wp-image-18420\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-7.png 726w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-7-300x24.png 300w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/p>\n<p>You can also grant administrative or sudo privileges to the new user by using this command:<\/p>\n<pre>\r\n$ usermod \u2013aG sudo [username]\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"48\" class=\"wp-image-18421\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-8.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-8-300x20.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<p>The above command will add the \u2018guestuser\u2019 into the sudo group and assign administrative privileges.<\/p>\n<h2>How to Delete a User From Ubuntu 22.04?<\/h2>\n<p>To delete a specific user from Ubuntu 22.04, you can use the following syntax:<\/p>\n<pre>\r\n$ sudo deluser [username]\r\n<\/pre>\n<p>For example, if we want to delete user \u2018guestuser\u2019, use the above command in the following way to delete this user account:<\/p>\n<pre>\r\n$ sudo deluser guestuser\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"92\" class=\"wp-image-18422\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-9.png 730w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18398-9-300x38.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/p>\n<h3><strong>Conclusion<\/strong><\/h3>\n<p>We learned from this tutorial how to add a user in Ubuntu 22.04 system by using the command line or via GUI. Moreover, we demonstrated how to grant sudo access to a user and delete a user from Ubuntu 22.04 Jammy jellyfish distribution.<\/p>","protected":false},"excerpt":{"rendered":"<p>This article will go through how to create a new user on the Ubuntu 22.04 Jammy jellyfish distribution using both the graphical GUI and the command line method.<\/p>","protected":false},"author":2,"featured_media":18439,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-18398","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/18398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=18398"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/18398\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/18439"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=18398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=18398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=18398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}