{"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
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t

How to Add New User<\/h2>

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 VPS<\/a> as user.<\/p>

Step 1<\/h3>

Then, to sign in and perform administrative tasks, you can add a new account. Replace\u00a0username\u00a0with your preferred username.<\/p>

\"add
Add new account<\/figcaption><\/figure>

Step 2<\/h3>

The command will ask you to input a password. We highly recommend a strong, secure password.<\/p>

\"enter
Enter new UNIX password<\/figcaption><\/figure>

Step 3<\/h3>

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>

\"be
Input some other information<\/figcaption><\/figure>

Step 4<\/h3>

Add the new user to the\u00a0sudo\u00a0group.<\/p>

\"add
Add new user to the sudo group<\/figcaption><\/figure>

Step 5<\/h3>

Before we can test out whether sudo access is working, we need to log into the user account.<\/p>

\"Before
Before test out whether sudo access is working, you need to log into the user account<\/figcaption><\/figure>

Step 6<\/h3>

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>

\"User\u2019s
User\u2019s password to authenticate<\/figcaption><\/figure>

Find out 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":"

How to Add New User Right now you sign in and execute all commands as root users on your computer. […]<\/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}]}}