{"id":7969,"date":"2023-03-20T06:12:47","date_gmt":"2023-03-20T06:12:47","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=7969"},"modified":"2023-12-18T06:40:42","modified_gmt":"2023-12-18T06:40:42","slug":"create-multiple-users-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/","title":{"rendered":"How to Create Multiple Users in Linux? [2 Methods]"},"content":{"rendered":"<p style=\"text-align: justify;\">While working in <a href=\"https:\/\/www.linux.org\/\" target=\"_blank\" rel=\"noopener\"><strong>Linux<\/strong><\/a> distributions, you may want to add multiple user accounts to your system. Adding a single user is pretty simple, but when it comes to creating a number of users this task can become both exhausting and time-consuming. Therefore, the <strong>Linux <\/strong>operating system offers the advantage of <strong>creating multiple users<\/strong> for your system at once. Apart from the system&#8217;s default settings, you can also <strong>develop scripts<\/strong> for creating more than one user. However, To add, remove or modify a user in <a href=\"https:\/\/ubuntu.com\/\" target=\"_blank\" rel=\"noopener\"><strong>Ubuntu<\/strong><\/a> , you need to be a <a href=\"https:\/\/linuxsimply.com\/what-is-root-user-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>root<\/strong> <strong>user<\/strong><\/a> or have <a href=\"https:\/\/linuxsimply.com\/what-is-root-access-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>root\/sudo privileges<\/strong><\/a> . Here, In this article, you will find the convenient answers to the question \u201cHow to <strong>Create Multiple Users in Linux<\/strong>?\u201d.<\/p>\n<div class=\"su-button-center\"><a href=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create_users.zip\" class=\"su-button su-button-style-default\" style=\"color:#000000;background-color:#E8F9FF;border-color:#bac8cc;border-radius:56px\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"color:#000000;padding:8px 26px;font-size:20px;line-height:30px;border-color:#effbff;border-radius:56px;text-shadow:0px 0px 0px #000000\"><i class=\"sui sui-download\" style=\"font-size:20px;color:#1AA1D6\"><\/i> Download bash file to create multiple users in Linux<\/span><\/a><\/div>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#Process_Flow_Chart_to_Create_Multiple_Users_in_Linux\" >Process Flow Chart to Create Multiple Users in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#Watch_the_Video_to_Create_Multiple_Users_in_Linux\" >Watch the Video to Create Multiple Users in Linux<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#2_Methods_to_Create_Multiple_Users_in_Linux\" >2 Methods to Create Multiple Users in Linux<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#Method_01_Using_a_Command_Text_File_to_Create_Multiple_Users_in_Linux\" >Method 01: Using a Command &amp; Text File to Create Multiple Users in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#Method_02_Using_Bash_Script_to_Create_Multiple_Users_in_Linux\" >Method 02: Using Bash Script to Create Multiple Users in Linux<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#Step_1_Preparing_a_Script_for_Creating_Multiple_Users\" >Step 1: Preparing a Script for Creating Multiple Users<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#Step_2_Executing_Script_for_Creating_Multiple_Users\" >Step 2: Executing Script for Creating Multiple Users<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#Comparative_Analysis_of_Methods\" >Comparative Analysis of Methods<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#Complementary_Information\" >Complementary Information<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#How_to_Add_Multiple_Users_in_a_Group_in_Linux\" >How to Add Multiple Users in a Group in Linux<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#People_Also_Ask\" >People Also Ask<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#Can_a_Linux_user_be_in_multiple_groups\" >Can a Linux user be in multiple groups?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#How_Linux_is_multi-user\" >How Linux is multi-user?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#What_is_multi-user_mode_in_Linux\" >What is multi-user mode in Linux?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#How_do_I_list_users_in_Linux\" >How do I list users in Linux?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#What_are_the_3_types_of_users_in_Linux\" >What are the 3 types of users in Linux?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#How_many_users_can_be_in_a_group_Linux\" >How many users can be in a group Linux?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Process_Flow_Chart_to_Create_Multiple_Users_in_Linux\"><\/span>Process Flow Chart to Create Multiple Users in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>[Distro Used Throughout the Tutorial:<a href=\"https:\/\/ubuntu.com\/download\/desktop\" target=\"_blank\" rel=\"noopener\"> Ubuntu 22.04.1 LTS<\/a>]<\/strong><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-8009\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-11.png\" alt=\"Flow chart for creating multiple users in linux.\" width=\"825\" height=\"630\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-11.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-11-300x229.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-11-767x586.png 767w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Watch_the_Video_to_Create_Multiple_Users_in_Linux\"><\/span>Watch the Video to Create Multiple Users in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"su-youtube su-u-responsive-media-yes\"><iframe width=\"600\" height=\"400\" src=\"https:\/\/www.youtube.com\/embed\/0WgQbEpCKLA?\" frameborder=\"0\" allowfullscreen allow=\"autoplay; encrypted-media; picture-in-picture\" title=\"\"><\/iframe><\/div>\n<h2><span class=\"ez-toc-section\" id=\"2_Methods_to_Create_Multiple_Users_in_Linux\"><\/span>2 Methods to Create Multiple Users in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In <strong>Linux<\/strong>, there are different ways of creating multiple users. As <strong>Linux <\/strong>offers user-defined scripts, the <a href=\"https:\/\/linuxsimply.com\/useradd-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>useradd<\/strong><\/a> and <a href=\"https:\/\/linuxsimply.com\/adduser-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>adduser<\/strong><\/a> commands can be utilized as per the user\u2019s need for creating more than one user. However, there is a default command <strong>newusers <\/strong>that adds multiple users to the system by reading user credentials from a text file.<\/p>\n<p style=\"text-align: justify;\">In this article, I will demonstrate both approaches to creating multiple users in <strong>Linux<\/strong>.<\/p>\n<div class=\"su-note\"  style=\"border-color:#e5e3d9;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFDF3;border-color:#ffffff;color:#333333;\">\n<p style=\"text-align: justify;\">You can read our <a href=\"#Comparative-Analysis-of-Methods\"><strong>Comparative Analysis of Methods<\/strong><\/a> to distinguish between these two methods and best pick one for your need.<\/p>\n<\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Method_01_Using_a_Command_Text_File_to_Create_Multiple_Users_in_Linux\"><\/span>Method 01: Using a Command &amp; Text File to Create Multiple Users in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can add multiple users in your system simultaneously using the <strong>newusers <\/strong>command. However, first, you must create a <strong>.txt <\/strong>file that will contain the necessary credentials of the users. Each user information has to be written in a new line following a specified syntax.<\/p>\n<p style=\"text-align: justify;\">In this example, I will create four users at a single time using the <strong>newusers <\/strong>command. The users will have the following usernames: <strong>UserA<\/strong>, <strong>UserB<\/strong>, <strong>UserC<\/strong>, and <strong>UserD<\/strong>. I will set the other credentials such as <strong>user passwords<\/strong>, <strong>IDs<\/strong>, <strong>GIDs<\/strong>, etc for each user in the <strong>\u201cnew_user.txt\u201d <\/strong>file. You can follow the instructions below to do the same.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu <\/strong><a href=\"https:\/\/linuxsimply.com\/what-is-terminal-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>terminal<\/strong><\/a>.<\/p>\n<p>\u278b Create a <strong>.txt file<\/strong> to write the new user\u2019s credentials by typing the given command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">nano new_users.txt<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><a href=\"https:\/\/linuxsimply.com\/nano-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>nano<\/strong><\/a><strong>: <\/strong>Creates\/edits text files with Nano text editor.<\/li>\n<li><strong>new_users.txt: <\/strong>Text file to write multiple user information.<\/li>\n<\/ul>\n<\/div><\/div>\n<p>\u278c Type your desired multiple-user information following the syntax below.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">pw_name:pw_passwd:pw_uid:pw_gid:pw_gecos:pw_dir:pw_shell<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><strong>pw_name: <\/strong>User name of the new user to be created.<\/li>\n<li><strong>pw_passwd: <\/strong>Password for the new user.<\/li>\n<li><strong>pw_uid: <\/strong>New user\u2019s ID.<\/li>\n<li><strong>pw_gid: <\/strong>New user\u2019s group ID.<\/li>\n<li><strong>pw_gecos: <\/strong>Comments sections.<\/li>\n<li><strong>pw_dir: <\/strong>User\u2019s home directory.<\/li>\n<li><strong>pw_shell: <\/strong>User\u2019s default shell.<\/li>\n<\/ul>\n<\/div><\/div>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-8003 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-1.png\" alt=\"Writing user credentials in a text file to create multiple users.\" width=\"825\" height=\"681\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-1.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-1-300x248.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-1-767x633.png 767w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/>\u2779 Change the <strong>.txt file\u2019s permissions<\/strong> using the following command and hit <strong>ENTER<\/strong>.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo chmod 600 new_users.txt<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><a href=\"https:\/\/linuxsimply.com\/sudo-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>sudo<\/strong><\/a><strong>:<\/strong> Grants administrative privileges.<\/li>\n<li><a href=\"https:\/\/linuxsimply.com\/chmod-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>chmod<\/strong><\/a><strong>: <\/strong>Changes folder permissions.<\/li>\n<li><strong>600: <\/strong>Sets <strong>read<\/strong> and <strong>write<\/strong> permissions to the <strong>owner<\/strong>, and <strong>none <\/strong>to all other users.<\/li>\n<li><strong>new_users.txt: <\/strong>Name of the file.<\/li>\n<\/ul>\n<\/div><\/div>\n<p>\u277a Input the <strong>password <\/strong>of the currently logged-in user.<\/p>\n<p>\u277b Create desired users by typing the command given below.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo newusers new_users.txt<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><strong>sudo:<\/strong> Grants administrative privileges.<\/li>\n<li><strong>newusers: <\/strong>Reads a file and creates new users using file contents.<\/li>\n<li><strong>new_users.txt: <\/strong>Name of the .txt file containing multiple user credentials.<\/li>\n<\/ul>\n<\/div><\/div>\n<p>\u277c Finally, press the <strong>ENTER<\/strong> button.<\/p>\n<p>\u277d Now, to check if the desired users are actually created, write the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail -n 4 \/etc\/passwd<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><a href=\"https:\/\/linuxsimply.com\/tail-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>tail<\/strong><\/a><strong>: <\/strong>Prints the last few\/ specified lines from a file.<\/li>\n<li><strong>-n 4: <\/strong>Specifies the number of lines to be printed.<\/li>\n<li><strong>\/etc\/passwd: <\/strong>Contains user information.<\/li>\n<\/ul>\n<\/div><\/div>\n<p>\u277e Again, hit <strong>ENTER<\/strong>.<img decoding=\"async\" class=\"aligncenter size-full wp-image-8004\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-2.png\" alt=\"Creating multiple users with newusers command in linux.\" width=\"825\" height=\"315\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-2.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-2-300x115.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-2-767x293.png 767w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/>Upon completion of the given steps, you can see in the image that <strong>4 <\/strong>new users: <strong>UserA<\/strong>, <strong>UserB<\/strong>, <strong>UserC<\/strong>, and <strong>UserD <\/strong>have been added to my system at the same time. Moreover, I have printed the last <strong>4 lines <\/strong>from the \u201c<strong>\/etc\/passwd<\/strong>\u201d file using the <strong>tail command <\/strong>to show you the newly added accounts.<\/p>\n<hr \/>\n<ul>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/create-a-jenkins-user-on-ubuntu\/\" target=\"_blank\" rel=\"noopener\">How to Create a Jenkins User on Ubuntu? [2 Methods]<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/ubuntu-mysql-create-user\/\" target=\"_blank\" rel=\"noopener\">How to Create MySQL User in Ubuntu? [2 Cases]<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/ubuntu-create-user-without-home-directory\/\" target=\"_blank\" rel=\"noopener\">Create User Without Home Directory in Ubuntu in Just 3 Steps<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/create-a-user-in-docker-container-without-docker-file\/\" target=\"_blank\" rel=\"noopener\">How to Create a User in Docker Container Without Docker File?<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Method_02_Using_Bash_Script_to_Create_Multiple_Users_in_Linux\"><\/span>Method 02: Using Bash Script to Create Multiple Users in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Another approach to creating multiple users in <strong>Linux<\/strong> is by utilizing the bash scripting technique. However, in this case, the creation of users will not be simultaneous. In fact, users will be created in a one-by-one manner. You can loop either the <strong>adduser<\/strong> or <strong>useradd<\/strong> command inside your script to achieve this task.<\/p>\n<p style=\"text-align: justify;\">In this example, I will utilize the <strong>useradd command <\/strong>within a <strong>for loop<\/strong> inside my script for creating multiple users. To make the method more interactive, I will also use the <strong>If condition<\/strong> with <strong>logical operators (==,||) <\/strong>and some additional commands such as <strong>read<\/strong>, <strong>echo<\/strong>, <strong>psswd<\/strong>, etc. You can follow the process below to do the same.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Step_1_Preparing_a_Script_for_Creating_Multiple_Users\"><\/span>Step 1: Preparing a Script for Creating Multiple Users<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To prepare a script that creates multiple users in a loop follow the instructions below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open a <strong>Ubuntu<\/strong> terminal window by pressing <strong>CTRL<\/strong>+ <strong>ALT<\/strong> + <strong>T<\/strong><\/p>\n<p>\u278b Then, create a <strong>bin<\/strong> folder in your <strong>home directory<\/strong> by typing the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">mkdir bin<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><a href=\"https:\/\/linuxsimply.com\/mkdir-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>mkdir<\/strong><\/a><strong>: <\/strong>Creates a Directory.<\/li>\n<li><strong>bin: <\/strong>User\u2019s private <strong>bin directory<\/strong>.<\/li>\n<\/ul>\n<\/div><\/div>\n<p>However, you can skip this step if the directory is already created.<\/p>\n<p>\u278c After that, create a bash script file inside the <strong>bin directory<\/strong> with the command below.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">nano bin\/create_users.sh<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><strong>nano: <\/strong>Creates\/edits text files with Nano text editor.<\/li>\n<li><strong>create_users,sh: <\/strong>File for writing bash script of creating multiple users.<\/li>\n<\/ul>\n<\/div><\/div>\n<p>\u2779 Now, write the following script in the <strong>create_users.sh<\/strong> file for creating multiple users in loop.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">#!\/bin\/bash\n\nread -p &quot;Enter number of Users to create:&quot; num\necho &quot;------------------------------------------------------&quot;\nfor (( i=1; i&lt;=$num; i=i+1)); do\nread -p &quot;Enter Username no.$i: &quot; uname\nsudo useradd $uname\nread -p &quot;Enter password for user no.$i? [Y\/N] &quot; flag\nif [[ &quot;$flag&quot; == &quot;Y&quot; || &quot;$flag&quot; == &quot;y&quot; ]]; then\nsudo passwd $uname\necho &quot;Successfully created New User: $uname with password.&quot;\necho &quot;------------------------------------------------------&quot;\nelse\necho &quot;Successfully created New User: $uname without password.&quot;\necho &quot;------------------------------------------------------&quot;\nfi\ndone<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><strong>read -p \u201cMessage\u201d variable: <\/strong>Displays a message while taking input from the terminal and stores in the <strong>variable<\/strong>.<\/li>\n<li><a href=\"https:\/\/linuxsimply.com\/echo-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>echo<\/strong><\/a><strong>: <\/strong>Displays a given text.<\/li>\n<li><strong>$Variable: <\/strong>Returns the value stored in a <strong>Variable<\/strong>.<\/li>\n<li><strong>for (( InitialValue; TestExpression; UpdateStatement)); do done: <\/strong>Runs the commands inside the <strong>do <\/strong>and <strong>done <\/strong>keywords in a loop from the <strong>InitialValue<\/strong>. Updates the initial value using <strong>UpdateStatement<\/strong> or comes out of the loop depending on the <strong>TestExpression<\/strong>.<\/li>\n<li><strong>sudo:<\/strong> Grants administrative privileges.<\/li>\n<li><strong>useradd:<\/strong> Adds a new user.<\/li>\n<li><strong>if [ condition ]; then else fi:<\/strong> Checks a condition. If the condition is true, execute the command\/commands after \u201cthen\u201d. Otherwise, execute the command after \u201celse\u201d.<\/li>\n<li><a href=\"https:\/\/linuxsimply.com\/passwd-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>passwd<\/strong><\/a><strong>:<\/strong> Sets\/Changes password.<\/li>\n<\/ul>\n<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8005\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-3.png\" alt=\"Bash script for creating multiple users in linux.\" width=\"825\" height=\"638\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-3.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-3-300x232.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-3-767x593.png 767w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/>\u277a To save and exit from the script, press <strong>CTRL <\/strong>+ <strong>S <\/strong>and <strong>CTRL + X <\/strong>respectively.<\/p>\n<p>\u277b Now, Type the following to make the script executable for the current user in your system.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">chmod u+rwx bin\/create_users.sh<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><strong>chmod: <\/strong>Changes folder permissions.<\/li>\n<li><strong>u+rwx: <\/strong>Adds <strong>read<\/strong>, <strong>write<\/strong> and <strong>execute <\/strong>permissions for the current user.<\/li>\n<li><strong>sh: <\/strong>Bash script file for creating multiple users.<\/li>\n<\/ul>\n<\/div><\/div>\n<p style=\"text-align: justify;\">\u277c Finally, restart your system to add the newly created <strong>bin directory<\/strong> to the <strong>$PATH <\/strong>variable by typing the command below.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo reboot<\/code><\/pre>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8006\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-4.png\" alt=\"Preparing bash script for creating multiple users.\" width=\"700\" height=\"152\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-4.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-4-300x65.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-4-764x166.png 764w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/>Restarting the system by default runs the <strong>.profile <\/strong>script which adds the user\u2019s private <strong>bin directory <\/strong>to <strong>$PATH <\/strong>and makes the files inside <strong>bin <\/strong>directory accessible for every shell session<strong>.<\/strong><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Step_2_Executing_Script_for_Creating_Multiple_Users\"><\/span>Step 2: Executing Script for Creating Multiple Users<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">After restarting the system you will be able to run the \u201c<strong>create_users.sh<\/strong>\u201d script from any path under the current <strong>user account<\/strong>. To learn how you can execute the script for creating multiple users follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, press <strong>CTRL+ALT+T <\/strong>to open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Run the previously written script by simply typing the file name.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">create_users.sh<\/code><\/pre>\n<p>\u278c Type the number of users you want to create and hit <strong>ENTER<\/strong>. In this example, I will add <strong>2<\/strong> new users to my system. Therefore, I will type \u201c<strong>2<\/strong>\u201d and press <strong>ENTER<\/strong>.<\/p>\n<p>\u2779 Create each user with or without passwords.<\/p>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\"><strong>NOTE: <\/strong>To terminate the running script you can press <strong>CTRL+Z<\/strong> and achieve the creation of a lesser number of users than you initially wanted.<br \/>\n<\/div><\/div>\n\u277a Now, to check if the desired 2 users are actually created, write the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tail -n 2 \/etc\/passwd<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><strong>tail: <\/strong>Prints the last few\/ specified lines from a file.<\/li>\n<li><strong>-n 2: <\/strong>Specifies the number of lines to be printed.<\/li>\n<li><strong>\/etc\/passwd: <\/strong>Contains user information.<\/li>\n<\/ul>\n<\/div><\/div>\n<p>\u277b Again, hit <strong>ENTER<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8007\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-6.png\" alt=\"Creating multiple users with bash script in linux.\" width=\"825\" height=\"542\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-6.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-6-300x197.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-6-767x504.png 767w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<p style=\"text-align: justify;\">After completing both <strong>Step1 <\/strong>and <strong>Step2<\/strong>, in the above image, you can see that I have successfully added <strong>two <\/strong>new users to my system. On top of that, this \u201c<strong>create_users.sh<\/strong>\u201d script is now executable at any time from any path of the current user.<\/p>\n<p style=\"text-align: justify;\">This method is planned in such a way that you can easily add multiple users to your distribution even after closing the <strong>System <\/strong>or the <strong>Terminal<\/strong>. Furthermore, you may run the <strong>tail command <\/strong>on the \u201c<strong>\/etc\/passwd<\/strong>\u201d file to view the newly added users.<\/p>\n<\/div><\/div>\n<hr \/>\n<ul>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/create-ftp-user-ubuntu\/\" target=\"_blank\" rel=\"noopener\">How to Create an FTP User in Ubuntu? [Step-by-Step]<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/create-a-new-sftp-user-in-ubuntu-with-a-new-ssh-key\/\" target=\"_blank\" rel=\"noopener\">Create a New SFTP User in Ubuntu with a New SSH Key<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/ubuntu-create-group-and-add-user\/\" target=\"_blank\" rel=\"noopener\">How to Create Group and Add User in Ubuntu? [2 Cases]<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/ubuntu-create-ftp-user-for-specific-directory\/\" target=\"_blank\" rel=\"noopener\">Create FTP User for Specific Directory in Ubuntu [4 Steps]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h2><span class=\"ez-toc-section\" id=\"Comparative_Analysis_of_Methods\"><\/span><a id=\"Comparative-Analysis-of-Methods\"><\/a>Comparative Analysis of Methods<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">Since this article introduces multiple methods for a single task, you might get confused about which one to pick. Therefore, in this section, I am presenting a comparative analysis of the two different approaches for your convenience. You can learn the advantages and disadvantages of the available methods and choose which is the best for you.<\/p>\n<div class=\"su-table su-table-responsive su-table-alternate su-table-fixed\">\n<table style=\"width: 100%\">\n<tbody>\n<tr>\n<th style=\"width: 16.7513%;text-align: center\" width=\"94\"><strong>Methods<\/strong><\/th>\n<th style=\"width: 40.7783%;text-align: center\" width=\"246\"><strong>Pros<\/strong><\/th>\n<th style=\"width: 162.437%;text-align: center\" width=\"246\"><strong>Cons<\/strong><\/th>\n<\/tr>\n<tr>\n<td style=\"width: 16.7513%;text-align: center\" width=\"94\"><strong>Method 1<\/strong><\/td>\n<td style=\"width: 40.7783%\" width=\"246\">\n<ul>\n<li>Uses the command available in <strong>Linux<\/strong>. No modification is needed.<\/li>\n<li>Users can set other credentials such as <strong>password<\/strong>, <strong>UID<\/strong>, <strong>GID<\/strong>, <strong>home directory, <\/strong>etc along with the <strong>username<\/strong>.<\/li>\n<li>Serves the actual goal of creating multiple users at a time.<\/li>\n<\/ul>\n<\/td>\n<td style=\"width: 162.437%\" width=\"246\">\n<ul>\n<li>Needs to create a <strong>.txt<\/strong> file containing user credentials before running the command. Therefore, not interactive.<\/li>\n<li>Creates a fixed number of users.<\/li>\n<li>Privacy is compromised since the <strong>password <\/strong>for users is written in a <strong>.txt<\/strong> file unencrypted.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 16.7513%;text-align: center\" width=\"94\"><strong>Method 2<\/strong><\/td>\n<td style=\"width: 40.7783%\" width=\"246\">\n<ul>\n<li>A user-defined method, hence a user can make it as interactive as one wants.<\/li>\n<li>Uses general <strong>useradd<\/strong> and <strong>passwd <\/strong>commands, therefore accounts are as secure as any singly created user account.<\/li>\n<li>Once the script is created, it can be used anytime by the owner.<\/li>\n<\/ul>\n<\/td>\n<td style=\"width: 162.437%\" width=\"246\">\n<ul>\n<li>Needs basic knowledge of <strong>bash scripting<\/strong>.<\/li>\n<li>User has to write a proper script including necessary commands to achieve the goal.<\/li>\n<li>Does not actually create multiple users at once, but automates the process of creating multiple users.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"text-align: justify;\">To sum up, it can be said that both methods come with their own pros and cons. As a consequence, the suitable method varies from user to user. If you want to create multiple users with the complete information you can go for <strong>Method 1<\/strong>. On the other hand, If you want to automate the creation of multiple users and new users having only the <strong>username <\/strong>with\/without <strong>password <\/strong>suffices, then you can use the <strong>2nd<\/strong> approach.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Complementary_Information\"><\/span>Complementary Information<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Besides, knowing about creating multiple users in <strong>Linux<\/strong>, you will find the below information helpful.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_to_Add_Multiple_Users_in_a_Group_in_Linux\"><\/span>How to Add Multiple Users in a Group in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can add multiple users to a group in <strong>Linux <\/strong>using the <strong>gpasswd command <\/strong>in <strong>Linux<\/strong>. You must run this command as a root user using the <a href=\"https:\/\/linuxsimply.com\/what-is-sudo-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>sudo<\/strong> <strong>keyword<\/strong><\/a> to achieve this task. In this example, I will add the users: <strong>UserA<\/strong>, <strong>UserB<\/strong> and <strong>UserC <\/strong>to the group named \u201c<strong>multi_users<\/strong>\u201d available on my machine. To do the same you can follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu terminal<\/strong>.<\/p>\n<p>\u278b Then, type the following command in the command prompt.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo gpasswd -M UserA,UserB,UserC multi_users<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><strong>sudo: <\/strong>Grants administrative privileges.<\/li>\n<li><strong>gpasswd -M: <\/strong>Adds multiple users to a group.<\/li>\n<li><strong>UserA,UserB,UserC: <\/strong>List of multiple users to be added to the group.<\/li>\n<li><strong>multi_users:<\/strong> Name of the group to add users.<\/li>\n<\/ul>\n<\/div><\/div>\n<p>\u278c Press the <strong>ENTER<\/strong> button.<\/p>\n<p>\u278d Then, give the <strong>password <\/strong>of the current user and hit <strong>ENTER<\/strong>.<\/p>\n<p>\u278e Now, check the <strong>group members<\/strong> by typing the command below and hit <strong>ENTER<\/strong>.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo less \/etc\/group| grep &quot;multi_users&quot;<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><strong>sudo: <\/strong>Grants administrative privileges.<\/li>\n<li><a href=\"https:\/\/linuxsimply.com\/less-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>less<\/strong><\/a><strong>: <\/strong>Displays file contents in the terminal.<\/li>\n<li><strong>etc\/group: <\/strong>A text file that contains all the group information.<\/li>\n<li><a href=\"https:\/\/linuxsimply.com\/grep-command-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>grep:<\/strong><\/a><strong>\u00a0<\/strong>Searches for a string inside a specified file.<\/li>\n<li><strong>multi_users:<\/strong> Name of the group to add users.<\/li>\n<\/ul>\n<\/div><\/div>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8008\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-7.png\" alt=\"Adding multiple users to a group in linux.\" width=\"825\" height=\"78\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-7.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-7-300x28.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux-7-762x72.png 762w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/>In the above image, you can see that I have successfully added multiple users to the group \u201c<strong>multi_users<\/strong>\u201d. I have also displayed the updated user list of the group by applying the <strong>less <\/strong>and <strong>grep command <\/strong>on the \u201c<strong>\/etc\/group<\/strong>\u201d file contents.<\/p>\n<hr \/>\n<ul>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/create-a-root-user-in-ubuntu\/\" target=\"_blank\" rel=\"noopener\">How to Create a Root User in Ubuntu [Step-by-Step]<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/ubuntu-create-user-as-read-only-to-log-folder\/\" target=\"_blank\" rel=\"noopener\">Create a User in Ubuntu as Read-Only Access to Log Folder<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/ubuntu-create-user-account-with-public-key\/\" target=\"_blank\" rel=\"noopener\">How to Create User Account in Ubuntu with Public Key<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/ubuntu-create-a-user-that-runs-a-script-and-logs-out\/\" target=\"_blank\" rel=\"noopener\">Create A User in Ubuntu that Runs a Script and Logs Out [4 Steps]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In this article, I have illustrated two different ways of conveniently <strong>creating multiple users<\/strong> in <strong>Linux<\/strong>. You can use the conventional way of creating many users at the same time or you can modify your experience of adding a number of users by writing a script as per your requirement. Furthermore, this article provides you with explanatory steps to go through any of the aforementioned approaches. I hope, following these methods will help you become a power user of <strong>Linux<\/strong>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"People_Also_Ask\"><\/span>People Also Ask<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Can_a_Linux_user_be_in_multiple_groups\"><\/span>Can a Linux user be in multiple groups?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>Yes<\/strong>. You can add a <strong>Linux <\/strong>user to as many groups as you want. There is no limited group number for each user in<strong> LInux<\/strong>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_Linux_is_multi-user\"><\/span>How Linux is multi-user?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>Linux <\/strong>is a multi-user operating system because it allows multiple users to access its resources at the same time. To clarify, system resources are the memory\/ ram\/ application programs, etc.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_is_multi-user_mode_in_Linux\"><\/span>What is multi-user mode in Linux?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The multi-user mode in <strong>Linux <\/strong>indicates the <strong>Linux <\/strong>itself since it is a multi-use operating system. Multiple users at the same time can access the <strong>Linux <\/strong>system\u2019s memory\/ ram\/ application programs, etc.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_do_I_list_users_in_Linux\"><\/span>How do I list users in Linux?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To list the users in <strong>Linux<\/strong>, you can run the <strong>cat command <\/strong>on the \u201c<strong>etc\/passwd<\/strong>\u201d file. It is a text file that contains all the user\u2019s information.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_are_the_3_types_of_users_in_Linux\"><\/span>What are the 3 types of users in Linux?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The types of users in <strong>Linux <\/strong>are as follows: <strong>1)Super user: <\/strong>also known as the root user that has all the administrative privileges. <strong>2)Normal user:<\/strong> Generally created users not having access to system files. <strong>3) System user:<\/strong> Created to serve specific purposes.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_many_users_can_be_in_a_group_Linux\"><\/span>How many users can be in a group Linux?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>There is <strong>no specified number of users<\/strong> to be in a group. You can add as many users as you like to a group. Moreover, the <strong>Linux <\/strong>distribution supports an unlimited number of group members.<br \/>\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [{\n    \"@type\": \"Question\",\n    \"name\": \"Can a Linux user be in multiple groups?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Yes. You can add a Linux user to as many groups as you want. There is no limited group number for each user in LInux.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"How Linux is multi-user?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Linux is a multi-user operating system because it allows multiple users to access its resources at the same time. To clarify, system resources are the memory\/\/ ram\/\/ application programs, etc.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"What is multi-user mode in Linux?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"The multi-user mode in Linux indicates the Linux itself since it is a multi-use operating system. Multiple users at the same time can access the Linux system\u2019s memory\/\/ ram\/\/ application programs, etc.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"How do I list users in Linux?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"To list the users in Linux, you can run the cat command on the \u201cetc\/\/passwd\u201d file. It is a text file that contains all the user\u2019s information.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"What are the 3 types of users in Linux?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"The types of users in Linux are as follows: 1)Super user: also known as the root user that has all the administrative privileges. 2)Normal user: Generally created users not having access to system files. 3) System user: Created to serve specific purposes.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"How many users can be in a group Linux?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"There is no specified number of users to be in a group. You can add as many users as you like to a group. Moreover, the Linux distribution supports an unlimited number of group members.\"\n    }\n  }]\n}\n<\/script><br \/>\n<span style=\"font-size: 18pt;\"><strong>Relaed Articles<\/strong><\/span><\/p>\n<ul>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/ubuntu-create-user-and-add-to-sudo\/\" target=\"_blank\" rel=\"noopener\">How to Create User and Add to Sudo in Ubuntu? [2 Methods]<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/create-a-user-with-access-to-a-drive-ubuntu\/\" target=\"_blank\" rel=\"noopener\">2 Ways to Create a User With Access to a Drive in Ubuntu<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/create-a-new-user-in-ubuntu-by-gui\/\" target=\"_blank\" rel=\"noopener\">How to Create a New User in Ubuntu by GUI? [Step-by-Step]<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/create-user-account-in-ubuntu-using-terminal\/\" target=\"_blank\" rel=\"noopener\">2 Ways to Create User Account in Ubuntu Using Terminal<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/ubuntu-create-home-directory-for-existing-user\/\" target=\"_blank\" rel=\"noopener\">How to Create Home Directory for Existing User in Ubuntu<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/create-user-with-uid-and-gid-in-ubuntu\/\" target=\"_blank\" rel=\"noopener\">Create User with UID and GID in Ubuntu? [3 Scenarios]<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/linuxsimply.com\/create-a-sudo-user-in-ubuntu\/\" target=\"_blank\" rel=\"noopener\">How to Create a Sudo User in Ubuntu? [Step-by-Step]<\/a><\/strong><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;7969&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;How to Create Multiple Users in Linux? [2 Methods]&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>While working in Linux distributions, you may want to add multiple user accounts to your system. Adding a single user &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Create Multiple Users in Linux? [2 Methods]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#more-7969\" aria-label=\"Read more about How to Create Multiple Users in Linux? [2 Methods]\">Read more<\/a><\/p>\n","protected":false},"author":314896,"featured_media":7982,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[23],"class_list":["post-7969","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-ubuntu-create-user","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create Multiple Users in Linux? [2 Methods] - LinuxSimply<\/title>\n<meta name=\"description\" content=\"Learn how to create multiple users in Linux by using the newusers command to add users simultaneously or scripts by utilizing loops.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create Multiple Users in Linux? [2 Methods] - LinuxSimply\" \/>\n<meta property=\"og:description\" content=\"Learn how to create multiple users in Linux by using the newusers command to add users simultaneously or scripts by utilizing loops.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/profile.php?id=100005994046772&amp;mibextid=ZbWKwL\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-20T06:12:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-18T06:40:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Anonnya Ghosh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anonnya Ghosh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/\"},\"author\":{\"name\":\"Anonnya Ghosh\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/b53a69b64755f081b3c5951d72ba9c7c\"},\"headline\":\"How to Create Multiple Users in Linux? [2 Methods]\",\"datePublished\":\"2023-03-20T06:12:47+00:00\",\"dateModified\":\"2023-12-18T06:40:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/\"},\"wordCount\":2699,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/create-multiple-users-in-linux.png\",\"keywords\":[\"ubuntu create user\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/\",\"name\":\"How to Create Multiple Users in Linux? [2 Methods] - LinuxSimply\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/create-multiple-users-in-linux.png\",\"datePublished\":\"2023-03-20T06:12:47+00:00\",\"dateModified\":\"2023-12-18T06:40:42+00:00\",\"description\":\"Learn how to create multiple users in Linux by using the newusers command to add users simultaneously or scripts by utilizing loops.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/create-multiple-users-in-linux.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/create-multiple-users-in-linux.png\",\"width\":400,\"height\":400,\"caption\":\"How to create multiple users in linux.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/create-multiple-users-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create Multiple Users in Linux? [2 Methods]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/b53a69b64755f081b3c5951d72ba9c7c\",\"name\":\"Anonnya Ghosh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Anonnya-Ghosh-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Anonnya-Ghosh-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Anonnya-Ghosh-II-96x96.png\",\"caption\":\"Anonnya Ghosh\"},\"description\":\"Hello there! I am Anonnya Ghosh, a Computer Science and Engineering graduate from Ahsanullah University of Science and Technology (AUST). Currently, I am working as a Linux Content Developer Executive at SOFTEKO. The strong bond between Linux and cybersecurity drives me to explore this world of open-source architecture. I aspire to learn new things further and contribute to the field of CS with my experience. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/profile.php?id=100005994046772&mibextid=ZbWKwL\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/anonnya-ghosh-6a934b211\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/anonya\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create Multiple Users in Linux? [2 Methods] - LinuxSimply","description":"Learn how to create multiple users in Linux by using the newusers command to add users simultaneously or scripts by utilizing loops.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Create Multiple Users in Linux? [2 Methods] - LinuxSimply","og_description":"Learn how to create multiple users in Linux by using the newusers command to add users simultaneously or scripts by utilizing loops.","og_url":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/","og_site_name":"LinuxSimply","article_author":"https:\/\/www.facebook.com\/profile.php?id=100005994046772&mibextid=ZbWKwL","article_published_time":"2023-03-20T06:12:47+00:00","article_modified_time":"2023-12-18T06:40:42+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux.png","type":"image\/png"}],"author":"Anonnya Ghosh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Anonnya Ghosh","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/"},"author":{"name":"Anonnya Ghosh","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/b53a69b64755f081b3c5951d72ba9c7c"},"headline":"How to Create Multiple Users in Linux? [2 Methods]","datePublished":"2023-03-20T06:12:47+00:00","dateModified":"2023-12-18T06:40:42+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/"},"wordCount":2699,"commentCount":1,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux.png","keywords":["ubuntu create user"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/","url":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/","name":"How to Create Multiple Users in Linux? [2 Methods] - LinuxSimply","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux.png","datePublished":"2023-03-20T06:12:47+00:00","dateModified":"2023-12-18T06:40:42+00:00","description":"Learn how to create multiple users in Linux by using the newusers command to add users simultaneously or scripts by utilizing loops.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/03\/create-multiple-users-in-linux.png","width":400,"height":400,"caption":"How to create multiple users in linux."},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/create-multiple-users-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"How to Create Multiple Users in Linux? [2 Methods]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/b53a69b64755f081b3c5951d72ba9c7c","name":"Anonnya Ghosh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Anonnya-Ghosh-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Anonnya-Ghosh-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Anonnya-Ghosh-II-96x96.png","caption":"Anonnya Ghosh"},"description":"Hello there! I am Anonnya Ghosh, a Computer Science and Engineering graduate from Ahsanullah University of Science and Technology (AUST). Currently, I am working as a Linux Content Developer Executive at SOFTEKO. The strong bond between Linux and cybersecurity drives me to explore this world of open-source architecture. I aspire to learn new things further and contribute to the field of CS with my experience. Read Full Bio","sameAs":["https:\/\/www.facebook.com\/profile.php?id=100005994046772&mibextid=ZbWKwL","https:\/\/www.linkedin.com\/in\/anonnya-ghosh-6a934b211"],"url":"https:\/\/linuxsimply.com\/author\/anonya\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/7969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314896"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=7969"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/7969\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/7982"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=7969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=7969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=7969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}