{"id":580,"date":"2018-07-30T21:00:43","date_gmt":"2018-07-30T15:30:43","guid":{"rendered":"https:\/\/serverbasket.com\/help\/?p=580"},"modified":"2022-11-05T12:56:21","modified_gmt":"2022-11-05T07:26:21","slug":"how-to-create-user-on-linuxunix-serversystem-in-command-line","status":"publish","type":"post","link":"https:\/\/www.serverbasket.com\/help\/how-to-create-user-on-linuxunix-serversystem-in-command-line\/","title":{"rendered":"How To Create User On Linux\/Unix Server\/System In Command Line"},"content":{"rendered":"<p>If you want to creating users in Linux or Unix system. To create a new user account under any Linux server to use command called useradd. The system administrators are responsible for creating account. Login as root user (or use sudo command).<\/p>\n<p>useradd: The useradd command will let you add a new user easily from the command line:<\/p>\n<pre>#useradd &lt;username&gt;<\/pre>\n<p>passwd: The passwd command set a password for user:<\/p>\n<pre>#passwd &lt;username&gt;<\/pre>\n<p>Example:<\/p>\n<pre>#useradd testuser\r\n#passwd testuser<\/pre>\n<p>You can check user is created or not in file \/etc\/passwd<\/p>\n<pre>cat \/etc\/passwd<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you want to creating users in Linux or Unix system. To create a new user account under any Linux server to use command called useradd. The system administrators are responsible for creating account. Login as root user (or use sudo command). useradd: The useradd command will let you add a new user easily from [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":933,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,41,58,7],"tags":[75,107,106],"offerexpiration":[],"class_list":["post-580","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-linux","category-solus-vm","category-whm-management","tag-linux-server","tag-linux-server-user","tag-useradd"],"_links":{"self":[{"href":"https:\/\/www.serverbasket.com\/help\/wp-json\/wp\/v2\/posts\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serverbasket.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.serverbasket.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.serverbasket.com\/help\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serverbasket.com\/help\/wp-json\/wp\/v2\/comments?post=580"}],"version-history":[{"count":1,"href":"https:\/\/www.serverbasket.com\/help\/wp-json\/wp\/v2\/posts\/580\/revisions"}],"predecessor-version":[{"id":583,"href":"https:\/\/www.serverbasket.com\/help\/wp-json\/wp\/v2\/posts\/580\/revisions\/583"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.serverbasket.com\/help\/wp-json\/wp\/v2\/media\/933"}],"wp:attachment":[{"href":"https:\/\/www.serverbasket.com\/help\/wp-json\/wp\/v2\/media?parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.serverbasket.com\/help\/wp-json\/wp\/v2\/categories?post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.serverbasket.com\/help\/wp-json\/wp\/v2\/tags?post=580"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/www.serverbasket.com\/help\/wp-json\/wp\/v2\/offerexpiration?post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}