{"id":3974,"date":"2023-11-13T17:04:48","date_gmt":"2023-11-13T17:04:48","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=3974"},"modified":"2023-11-13T17:04:49","modified_gmt":"2023-11-13T17:04:49","slug":"create-a-linux-user-account-ubuntu","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=3974","title":{"rendered":"Create a Linux User Account (Ubuntu)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Creating a user account with a home directory and setting the default shell as BASH, can be done as follows, add &#8220;sudo&#8221; to the front as required.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>useradd -s \/bin\/bash -d \/home\/bobsmith\/ -m bobsmith\npasswd bobsmith<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you need your account to have sudo rights, you can specify the &#8220;sudo&#8221; group upon creation, as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>useradd -s \/bin\/bash -d \/home\/bobsmith\/ -m -G sudo bobsmith\npasswd bobsmith<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Creating a user account with a home directory and setting the default shell as BASH, can be done as follows, add &#8220;sudo&#8221; to the front as required. If you need your account to have sudo rights, you can specify the &#8220;sudo&#8221; group upon creation, as follows:<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,20],"tags":[],"class_list":["post-3974","post","type-post","status-publish","format-standard","hentry","category-linux","category-random"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3974"}],"version-history":[{"count":2,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3974\/revisions"}],"predecessor-version":[{"id":3976,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3974\/revisions\/3976"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}