{"id":3420,"date":"2020-08-12T09:00:05","date_gmt":"2020-08-12T01:00:05","guid":{"rendered":"https:\/\/www.casbay.com\/blog\/?p=3420"},"modified":"2022-09-22T18:39:24","modified_gmt":"2022-09-22T10:39:24","slug":"how-to-add-new-user","status":"publish","type":"post","link":"https:\/\/www.casbay.com\/blog\/tips-sharing\/how-to-add-new-user","title":{"rendered":"How to Add New User"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3420\" class=\"elementor elementor-3420\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-58cc33cf elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"58cc33cf\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-71e46245\" data-id=\"71e46245\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-183858ac elementor-widget elementor-widget-text-editor\" data-id=\"183858ac\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h2>How to Add New User<\/h2><p>Right now you sign in and execute all commands as root users on your computer. You can change each aspect of your server by this user. This is perfect for administration, but it is not ideal for protection to login periodically and access your <a href=\"https:\/\/www.casbay.com\/asia-vps-hosting\">VPS<\/a> as user.<\/p><h3>Step 1<\/h3><p>Then, to sign in and perform administrative tasks, you can add a new account. Replace\u00a0username\u00a0with your preferred username.<\/p><figure id=\"attachment_4036\" aria-describedby=\"caption-attachment-4036\" style=\"width: 1159px\" class=\"wp-caption aligncenter\"><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-4036 size-full\" src=\"https:\/\/www.casbay.com\/blog\/wp-content\/uploads\/2021\/02\/replace-username-1-1024x140-1.png\" alt=\"add new account in kali-linux\" width=\"1159\" height=\"158\" \/><figcaption id=\"caption-attachment-4036\" class=\"wp-caption-text\">Add new account<\/figcaption><\/figure><h3>Step 2<\/h3><p>The command will ask you to input a password. We highly recommend a strong, secure password.<\/p><figure id=\"attachment_4032\" aria-describedby=\"caption-attachment-4032\" style=\"width: 1127px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"wp-image-4032 size-full\" src=\"https:\/\/www.casbay.com\/blog\/wp-content\/uploads\/2021\/02\/enter-new-UNIX-password-2.png\" alt=\"enter new UNIX password\" width=\"1127\" height=\"214\" \/><figcaption id=\"caption-attachment-4032\" class=\"wp-caption-text\">Enter new UNIX password<\/figcaption><\/figure><h3>Step 3<\/h3><p>You\u2019ll also be ask to input some other information. The default option is fine, so just hit Enter for each of these and then type Y to confirm.<\/p><figure id=\"attachment_4034\" aria-describedby=\"caption-attachment-4034\" style=\"width: 1126px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"wp-image-4034 size-full\" src=\"https:\/\/www.casbay.com\/blog\/wp-content\/uploads\/2021\/02\/input-some-other-info-3.png\" alt=\"be ask to input some other information-kali linux\" width=\"1126\" height=\"330\" \/><figcaption id=\"caption-attachment-4034\" class=\"wp-caption-text\">Input some other information<\/figcaption><\/figure><h3>Step 4<\/h3><p>Add the new user to the\u00a0sudo\u00a0group.<\/p><figure id=\"attachment_4031\" aria-describedby=\"caption-attachment-4031\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4031 size-large\" src=\"https:\/\/www.casbay.com\/blog\/wp-content\/uploads\/2021\/02\/add-new-user-to-the-sudo-group-4.png\" alt=\"add new user to the sudo group\" width=\"1024\" height=\"144\" \/><figcaption id=\"caption-attachment-4031\" class=\"wp-caption-text\">Add new user to the sudo group<\/figcaption><\/figure><h3>Step 5<\/h3><p>Before we can test out whether sudo access is working, we need to log into the user account.<\/p><figure id=\"attachment_4037\" aria-describedby=\"caption-attachment-4037\" style=\"width: 1174px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4037 size-full\" src=\"https:\/\/www.casbay.com\/blog\/wp-content\/uploads\/2021\/02\/test-account-5-1024x161-1.png\" alt=\"Before test out whether sudo access is working, you need to log into the user account\" width=\"1174\" height=\"185\" \/><figcaption id=\"caption-attachment-4037\" class=\"wp-caption-text\">Before test out whether sudo access is working, you need to log into the user account<\/figcaption><\/figure><h3>Step 6<\/h3><p>Now, make sure your sudo access is working. One way of doing this is by listing the \/root\/ directory, which is only possible with sudo access. You\u2019ll be ask for your user\u2019s password to authenticate.<\/p><figure id=\"attachment_4035\" aria-describedby=\"caption-attachment-4035\" style=\"width: 1128px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4035 size-full\" src=\"https:\/\/www.casbay.com\/blog\/wp-content\/uploads\/2021\/02\/password-to-authenticate-6.png\" alt=\"User\u2019s password to authenticate-Kali Linux\" width=\"1128\" height=\"186\" \/><figcaption id=\"caption-attachment-4035\" class=\"wp-caption-text\">User\u2019s password to authenticate<\/figcaption><\/figure><p>Find out <a href=\"https:\/\/www.casbay.com\/blog\/tips-sharing\/how-to-configure-a-secure-ssh-based\/\">How To Configure a Secure SSH Based<\/a>.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>How to Add New User Right now you sign in and execute all commands as root users on your computer. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":33215,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":"","_wpscppro_custom_social_share_image":0},"categories":[89],"tags":[102],"_links":{"self":[{"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/posts\/3420"}],"collection":[{"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/comments?post=3420"}],"version-history":[{"count":16,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/posts\/3420\/revisions"}],"predecessor-version":[{"id":34772,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/posts\/3420\/revisions\/34772"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/media\/33215"}],"wp:attachment":[{"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/media?parent=3420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/categories?post=3420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/tags?post=3420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}