{"id":153,"date":"2021-07-23T12:18:00","date_gmt":"2021-07-23T12:18:00","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/account-creation-errors\/"},"modified":"2021-07-23T12:18:00","modified_gmt":"2021-07-23T12:18:00","slug":"account-creation-errors","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/account-creation-errors\/","title":{"rendered":"Account Creation Errors"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>This document contains common account creation errors and the steps to troubleshoot them.<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>For more information about account creation, read our Create a New Account documentation.<\/p>\n<\/p><\/div>\n<\/div>\n<h2 id=\"groupadd-and-useradd-errors\">groupadd and useradd errors<\/h2>\n<p>You may receive this error for several reasons:<\/p>\n<h3 id=\"immutable-files\">Immutable files<\/h3>\n<p>If the <code>\/etc\/passwd<\/code> or <code>\/etc\/group<\/code> files contain the immutable flag, the system <strong>cannot<\/strong> edit them and therefore <strong>cannot<\/strong> add the account to your server.<\/p>\n<p>To check these files, run the following commands:<\/p>\n<pre><code>lsattr \/etc\/group\nlsattr \/etc\/shadow\n<\/code><\/pre>\n<p>If these files contain the immutable flag, they will return <code>i<\/code> in these commands\u2019 output.<\/p>\n<p>To remove this flag, run the following commands:<\/p>\n<pre><code>chattr -i \/etc\/passwd\nchattr -i \/etc\/group\n<\/code><\/pre>\n<h3 id=\"corrupt-group-shadow-file\">Corrupt group shadow file<\/h3>\n<p>If the <code>\/etc\/gshadow<\/code> file becomes corrupt, the system <strong>cannot<\/strong> correctly add the account to your server. For each group in the <code>\/etc\/groups<\/code> file, the <code>\/etc\/gshadow<\/code> file should include a line in the <code>groupname:::<\/code> format, where <code>groupname<\/code> represents the group name. Any <code>\/etc\/gshadow<\/code> file that does <strong>not<\/strong> include these lines is corrupt.<\/p>\n<p>To rebuild corrupt files, perform the following steps:<\/p>\n<ol>\n<li>\n<p>To move the existing <code>\/etc\/gshadow<\/code> file, run the following command:<\/p>\n<pre><code>mv \/etc\/gshadow \/etc\/gshadow.corrupt\n<\/code><\/pre>\n<\/li>\n<li>\n<p>To rebuild the file, run the <code>grpconv<\/code> command.<\/p>\n<\/li>\n<li>\n<p>If they exist, delete the <code>\/etc\/grshadow.lock<\/code> and <code>\/etc\/group.lock<\/code> files.<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"unable-to-add-user-errors\">unable to add user errors<\/h2>\n<p>If the system returns an <code>unable to add the user<\/code> error, the user may already exist in your system. To check whether the user already exists, perform either of the following steps:<\/p>\n<ul>\n<li>\n<p>Attempt to navigate to the <code>\/home\/username<\/code> directory, where <code>username<\/code> represents the account username.<\/p>\n<\/li>\n<li>\n<p>Check the contents of the <code>\/etc\/passwd<\/code> directory for an entry for that user.<\/p>\n<\/li>\n<\/ul><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview This document contains common account creation errors and the steps to troubleshoot them. Note: For more information about account creation, read our Create a New Account documentation. groupadd and useradd errors You may receive this error for several reasons: Immutable files If the \/etc\/passwd or \/etc\/group files contain the immutable flag, the system cannot &hellip;<\/p>\n","protected":false},"author":1,"featured_media":154,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/153"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=153"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/153\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/154"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}