

{"id":110819,"date":"2022-10-12T09:00:09","date_gmt":"2022-10-12T03:30:09","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=110819"},"modified":"2022-10-12T09:35:28","modified_gmt":"2022-10-12T04:05:28","slug":"adduser-command-in-linux","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/","title":{"rendered":"Adduser Command in Linux"},"content":{"rendered":"<p>In this article, you will learn what adduser is, and why it is used, then compare it with the useradd command, look at how to install it in different Linux distros, and look into the syntax and options of the adduser command.<\/p>\n<p>Only then will we look at some practical examples of the useradd command in the command line of Ubuntu 20.04. So pay attention, grab a snack if you need and read on!<\/p>\n<h3>What is the adduser command in linux?<\/h3>\n<p>Adduser is a command-line-based utility in Linux-based operating systems that helps in creating users on the desktop. The adduser command is very similar to the \u201cuseradd\u201d command. Yup! Don\u2019t get confused, useradd and adduser are 2 slightly different commands.<\/p>\n<p>The main difference between the 2 is that useradd is a native binary compiled with the system and adduser on the other hand is a Perl script that uses the useradd binary in the background. Don\u2019t worry, we will compare both the commands in great detail in the next section.<\/p>\n<p>We all know that Linux is a multi-user architecture, meaning more than one person can interact with the same system at the same time. It is the system administrator&#8217;s job to manage these users wisely, tasks like creating users, removing users, creating groups, removing groups, and assigning users to different groups come under user management. One such user management command is useradd.<\/p>\n<h3>What is the difference between useradd and adduser commands?<\/h3>\n<p>In this series of Linux articles, we have already seen the command \u201cuseradd\u201d (if you haven\u2019t, you better read that first!), it sounds and functions very similar to the adduser command. It must be noted that both are actually not the same. In this section, we shall not only compare both these commands but also find out which command \u2018you\u2019 need to use.<\/p>\n<p>The commands basically perform the same functions &#8211; creating users, but there are different. To put it in layman\u2019s language, the adduser command is intended for the user or administrator, and the useradd command is intended for the system. But we are not here for layman\u2019s language, are we?<\/p>\n<p>Technically speaking, the \u201cadduser\u201d command provides a high-level interface for adding new users, and the \u201cuseradd\u201d command provides a low-level interface. Most Linux users prefer and suggest the useradd command is more user-friendly and has more features?<\/p>\n<p>The useradd command has an interactive prompt that asks you for information about the new user account you are trying to add. Useradd also receives very few updates when compared to the useradd command, and needs to remain backward compatible.<\/p>\n<p>As an average Joe (basic Linux user), it is recommended for you to use the \u201cadduser\u201d command instead of \u201cuseradd\u201d. However, if you are a little more mainstream like a developer, use the \u201cuseradd\u201d in your scripts or programs you create, to ensure compatibility across different distros and future updates.<\/p>\n<h3>Installing linux adduser command<\/h3>\n<p>The useradd command already comes preinstalled in most distributions of Linux. But by some chance, if you do not have it or you may have uninstalled it, follow the command shown below with respect to your Linux distro to install the adduser command.<\/p>\n<h4>Installing adduser in Debian based Linux distributions<\/h4>\n<p>To install the adduser command on Debian based Linux distributions like Ubuntu, Kali, Mint OS, Parrot OS, Pure OS, AntiX, Deepin, etc, use the command shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo apt-get install adduser<\/pre>\n<h4>Installing adduser in RHEL based Linux distributions<\/h4>\n<p>To install the adduser command on Debian based Linux distributions like Alma Linux, Rockt Linux, Oracle Linux, clear OS, Euro Linux, etc, use the command shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo yum install adduser<\/pre>\n<h4>Installing adduser in RHEL based Linux distributions<\/h4>\n<p>To install the adduser command on Debian based Linux distributions like Fedora Spins, Clear OS, Qubes, Berry Linux, Korora, Arquetype, etc, use the command shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo dnf install adduser<\/pre>\n<h3>Syntax of linux adduser command<\/h3>\n<p>The syntax of the adduser command is really simple:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">adduser &lt;username&gt; &lt;options&gt;<\/pre>\n<p>Let us take a closer look at the fields present in the adduser command:<\/p>\n<h4>1. &lt;username&gt;<\/h4>\n<p>This field takes in the name of the user you are creating<\/p>\n<h4>2. &lt;options&gt;<\/h4>\n<p>This field takes in a range of options that specify how the adduser command should function.<\/p>\n<h3>Options used with the adduser command<\/h3>\n<p>In typical Linux fashion, useradd also has a long list of options that we can use to perform various tasks, let us look at some of them.<\/p>\n<h4>1. &#8211;conf &lt;filename&gt;<\/h4>\n<p>This option uses the file you specified instead of the \u201c\/etc\/adduser.conf\u201d file while creating a new user.<\/p>\n<h4>2. &#8211;disabled login<\/h4>\n<p>This option does not run passwd to set the password. The user can\u2019t use his\/her account until the password is set.<\/p>\n<h4>3. &#8211;force-badname<\/h4>\n<p>This option forces the adduser command to apply only a weak check for the validity of the name.<\/p>\n<h4>4. &#8211;gecos &lt;gecos&gt;<\/h4>\n<p>This option sets the gecos field for the new user-generated. The adduser command does not ask for finger information if this option is given.<\/p>\n<h4>5. &#8211;gid ID<\/h4>\n<p>This option forces the new groupid to be the given number when creating a new user. This option puts the user in that group.<\/p>\n<h4>6. &#8211;group<\/h4>\n<p>This option when combined with the option \u201c&#8211;system\u201d creates a group with the same name and ID as the system user is created. If at all you did not use it with the option \u201c&#8211;system\u201d, a group with the given name is created.<\/p>\n<h4>7. &#8211;home&lt;dir&gt;<\/h4>\n<p>This option uses the directory you specified as the home directory of the new user rather than the default specified in the configuration file.<\/p>\n<h4>8. &#8211;shell&lt;shell&gt;<\/h4>\n<p>This option uses the shell you specified as the new user\u2019s login shell rather than the default specified in the configuration file.<\/p>\n<h4>9. &#8211;ingroup&lt;group&gt;<\/h4>\n<p>This option adds the newly created user to the group you specified instead of the default defined by the \u201cUSERS_GID\u201d environment variable configuration file.<\/p>\n<h4>10. &#8211;no-create-home<\/h4>\n<p>This option does not create a home directory for the user being created.<\/p>\n<h4>11. &#8211;quiet<\/h4>\n<p>This option suppresses informational messages and only shows warnings and errors. This option helps in debugging.<\/p>\n<h4>12. &#8211;help<\/h4>\n<p>This option prints out the help menu as shown below:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/help-menu-of-the-adduser-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110897\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/help-menu-of-the-adduser-command.webp\" alt=\"help menu of the adduser command\" width=\"780\" height=\"650\" \/><\/a><\/p>\n<h4>13. &#8211;debug<\/h4>\n<p>This option provides verbose to the output to understand what is happening. As the name suggests, we use this option for debugging.<\/p>\n<h4>14. &#8211;uid&lt;ID&gt;<\/h4>\n<p>This option forced the new userid to be the number you specified. However, the adduser command will fail, if the user id you specified is already taken by another user.<\/p>\n<h4>15. &#8211;firstuid &lt;ID&gt;<\/h4>\n<p>This option overrides the first uid in the range that the uid is chosen from. This option overrides the \u201cFIRST_UID\u201d specified in the configuration file.<\/p>\n<h4>16. &#8211;lastuid &lt;ID&gt;<\/h4>\n<p>This option overrides the last uid in the range that the uid is chosen from.<\/p>\n<h4>17. &#8211;add_extra_groups<\/h4>\n<p>This option adds the new user to extra groups defined in the configuration file.<\/p>\n<h4>18. &#8211;version<\/h4>\n<p>This option displays the information regarding the version of the useradd command you are using in your system.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/version-of-the-adduser-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110898\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/version-of-the-adduser-command.webp\" alt=\"version of the adduser command\" width=\"780\" height=\"408\" \/><\/a><\/p>\n<h3>What happens when you create a user in Linux?<\/h3>\n<p>Before we learn how to use the adduser command to create users, let us first look at what the system does when creating a new user.<\/p>\n<p>When we are creating a user in Linux, the system does the following:<\/p>\n<p>1. It assigns a UID to the new user.<br \/>\n2. It creates another new \/home directory for the new user.<br \/>\n3. Sets the default shell as \/bin\/sh for the new user<br \/>\n4. Creates a private user group named after the username you entered.<br \/>\n5. Contents of the directory \u201c\/etc\/skel\u201d are copied to the home directory of the new user.<br \/>\n6. It copies files containing environmental variables for the user\u2019s session like .bashrc, .bash_profile, and .bash_logout to the new user&#8217;s home directory.<\/p>\n<p>Now that we have laid down the fundamentals, let us now look at a few practical examples of the useradd command just to get a rough idea of how it works and how to use it.<\/p>\n<h3>Adding a new user<\/h3>\n<p>To add a new user simply type the command \u201csudo adduser &lt;username&gt;\u201d. To use the adduser command, you either need to be the root user or use the sudo command for elevated privileges.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/adding-a-new-user.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110900\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/adding-a-new-user.webp\" alt=\"adding a new user\" width=\"508\" height=\"355\" \/><\/a><\/p>\n<p>Notice that when you use the above command, an interactive prompt shows up which asks you to enter different information like password, full name, phone number, and more.<\/p>\n<h3>Adding a user with a different shell<\/h3>\n<p>If you want to change the default bash shell for the new user, you can pair the adduser command with the option \u201c&#8211;shell\u201d followed by the path as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo adduser &lt;username&gt; --shell &lt;path&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/adding-a-user-with-a-different-shell.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110901\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/adding-a-user-with-a-different-shell.webp\" alt=\"adding a user with a different shell\" width=\"666\" height=\"420\" \/><\/a><\/p>\n<h3>Adding a user with a different configuration file<\/h3>\n<p>If you don\u2019t want to use the default configuration file and want to specify another, pair the adduser command with the option \u201c&#8211;conf\u201d followed by the filename as shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo adduser &lt;username&gt; --conf &lt;filename.conf&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/adding-a-user-with-a-different-configuration-file.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110902\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/adding-a-user-with-a-different-configuration-file.webp\" alt=\"adding a user with a different configuration file\" width=\"780\" height=\"425\" \/><\/a><\/p>\n<p>The command shown in the screenshot above takes the configurations from the custom_config file and will create the new as per custom_config filename configurations.<\/p>\n<h3>Adding a user with a different home directory<\/h3>\n<p>If you want to create a new user with another home directory, use the option \u201c&#8211;home\u201d followed by the path of the new home directory as shown:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/adding-a-user-with-a-different-home-directory.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110903\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/adding-a-user-with-a-different-home-directory.webp\" alt=\"adding a user with a different home directory\" width=\"780\" height=\"258\" \/><\/a><\/p>\n<h3>Specifying the user id of a new user<\/h3>\n<p>To specify the UID of a new user, use the option \u201c-u\u201d followed by the UID you want to give. You must be careful not to give an already taken UID. use the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo adduser -u &lt;UID&gt; &lt;username&gt;<\/pre>\n<h3><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/specifying-the-user-id-of-a-new-user.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110904\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/specifying-the-user-id-of-a-new-user.webp\" alt=\"specifying the user id of a new user\" width=\"628\" height=\"418\" \/><\/a><\/h3>\n<h3>Creating a user without a home directory<\/h3>\n<p>If you wish to create a new user without a home directory simply pair the adduser command with the option \u201c-M\u201d as shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo adduser -M demo_user8<\/pre>\n<h3>Creating a system user<\/h3>\n<p>Wait, what is a system user? Well, in Linux there are generally 2 types of users:<\/p>\n<h4>1. System user<\/h4>\n<p>The system user, also known as the root is the one that creates normal users. The best part is that the system user is automatically created when you first install the operating system. Moreover, you can also create system users for particular applications and programs.<\/p>\n<h4>2. Normal user<\/h4>\n<p>The normal users are the ones that are created by the system or root user, actually, even users with sudo privileges can create normal users<\/p>\n<p>To create a system user, you can either use the option\u201c&#8211;system\u201d as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo adduser --system &lt;username&gt;<\/pre>\n<h3><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/creating-a-system-user.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110905\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/creating-a-system-user.webp\" alt=\"creating a system user\" width=\"715\" height=\"126\" \/><\/a><\/h3>\n<h3>Adding a new user into a group<\/h3>\n<p>If you wish to add a new user into a group, simply pair the adduser command with the option \u201c&#8211;group\u201d, it will automatically add the user into the default group. Once the command has been successfully executed, you will get a message saying that the user has been added to a group. It also prints the GID of the group.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/adding-a-new-user-into-a-group.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110906\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/adding-a-new-user-into-a-group.webp\" alt=\"adding a new user into a group\" width=\"704\" height=\"124\" \/><\/a><\/p>\n<h3>Not setting a password for the new user<\/h3>\n<p>In most of the outputs shown above, when we were creating a new user, the system prompted us to create a password for the user, but what if we don\u2019t want to? Well, we can use the option \u201c&#8211;disable-login\u201d. Upon using this option, the useradd command automatically skips the part of setting the password. Use the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo adduser --disables-login &lt;username&gt;<\/pre>\n<h3><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/not-setting-a-password-for-the-new-user.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110907\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/08\/not-setting-a-password-for-the-new-user.webp\" alt=\"not setting a password for the new user\" width=\"698\" height=\"361\" \/><\/a><\/h3>\n<h3>Summary<\/h3>\n<p>As you have seen, the adduser command is one of the tools that help in creating new users, and with its various options, we can perform tasks like creating a home directory, assigning a UID and GID to a user, specifying a shell, bypassing password, and so many more.<\/p>\n<p>You have now learned what the adduser command is, why we use it, what happens when we create a new user in Linux, the syntax and options of the useradd command, which command should you use between \u201cuseradd\u201d and \u201cadduser\u201d, and 10 beautiful practical examples of the useradd command.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn what adduser is, and why it is used, then compare it with the useradd command, look at how to install it in different Linux distros, and look into&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":110820,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[27100],"class_list":["post-110819","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-adduser-command-in-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Adduser Command in Linux - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn what adduser is, why it is used, its ystnax, options, adduser vs useradd command, how to install adduser in different Linux distros etc\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adduser Command in Linux - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn what adduser is, why it is used, its ystnax, options, adduser vs useradd command, how to install adduser in different Linux distros etc\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-12T03:30:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-12T04:05:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/adduser-command-in-linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adduser Command in Linux - DataFlair","description":"Learn what adduser is, why it is used, its ystnax, options, adduser vs useradd command, how to install adduser in different Linux distros etc","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:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"Adduser Command in Linux - DataFlair","og_description":"Learn what adduser is, why it is used, its ystnax, options, adduser vs useradd command, how to install adduser in different Linux distros etc","og_url":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-10-12T03:30:09+00:00","article_modified_time":"2022-10-12T04:05:28+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/adduser-command-in-linux.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/b49855299264df5e27e3ec6c2cd9fde9"},"headline":"Adduser Command in Linux","datePublished":"2022-10-12T03:30:09+00:00","dateModified":"2022-10-12T04:05:28+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/"},"wordCount":1944,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/adduser-command-in-linux.webp","keywords":["Adduser Command in Linux"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/","url":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/","name":"Adduser Command in Linux - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/adduser-command-in-linux.webp","datePublished":"2022-10-12T03:30:09+00:00","dateModified":"2022-10-12T04:05:28+00:00","description":"Learn what adduser is, why it is used, its ystnax, options, adduser vs useradd command, how to install adduser in different Linux distros etc","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/adduser-command-in-linux.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/06\/adduser-command-in-linux.webp","width":1200,"height":628,"caption":"adduser command in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/adduser-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"Adduser Command in Linux"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/b49855299264df5e27e3ec6c2cd9fde9","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team is a group of passionate educators and industry experts dedicated to providing high-quality online learning resources on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. With years of experience in the field, the team aims to simplify complex topics and help learners advance their careers. At DataFlair, we believe in empowering students and professionals with the knowledge and skills needed to thrive in today\u2019s fast-paced tech industry. Follow us for Free courses, expert insights, tutorials, and practical tips to boost your learning journey.","url":"https:\/\/data-flair.training\/blogs\/author\/datafbdad\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=110819"}],"version-history":[{"count":3,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110819\/revisions"}],"predecessor-version":[{"id":110908,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/110819\/revisions\/110908"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/110820"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=110819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=110819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=110819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}