{"id":85,"date":"2017-09-18T11:52:53","date_gmt":"2017-09-18T10:52:53","guid":{"rendered":"http:\/\/www.1st4computing.co.uk\/services\/?p=85"},"modified":"2017-09-26T14:30:13","modified_gmt":"2017-09-26T13:30:13","slug":"linux-create-new-user","status":"publish","type":"post","link":"https:\/\/www.1st4computing.co.uk\/services\/linux-create-new-user\/","title":{"rendered":"Create New User"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"97\" data-permalink=\"https:\/\/www.1st4computing.co.uk\/services\/linux-create-new-user\/tux-smaller\/\" data-orig-file=\"https:\/\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tux-smaller.png\" data-orig-size=\"529,529\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Tux smaller\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tux-smaller-300x300.png\" data-large-file=\"https:\/\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tux-smaller.png\" class=\"alignright size-thumbnail wp-image-97\" src=\"https:\/\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tux-smaller-150x150.png\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tux-smaller-150x150.png 150w, https:\/\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tux-smaller-300x300.png 300w, https:\/\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tux-smaller-510x510.png 510w, https:\/\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tux-smaller.png 529w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/>When it comes to setting up our own servers, there&#8217;s a lot to learn and it&#8217;s often easy to forget the things we learned in the beginning.\u00a0 That&#8217;s where Google, or keeping a handy blog, is a great way of keeping our <strong>Top Tech Tips<\/strong> to hand.<\/p>\n<p>These <strong>Top Tech Tips<\/strong> are some of the things we&#8217;ve used when setting up our Cloud VPS servers running <strong><a href=\"http:\/\/webmin.com\/\">Webmin<\/a><\/strong> on top of <a href=\"https:\/\/www.centos.org\/\"><strong>Centos 7<\/strong><\/a>.<\/p>\n<p>Creating a new users is essential if you want to avoid always logging in as root (best avoided for security and so you don&#8217;t risk damaging your system).<\/p>\n<p>To create a new user in Linux, at the command line enter:<\/p>\n<div class=\"jr_console\">[root@server ~]# useradd newuser<\/div>\n<p>&#8211; where &#8216;newuser&#8217; is the username you want to create.<\/p>\n<p>To check that the new user has been created successfully:<\/p>\n<div class=\"jr_console\">[root@server ~]# cat \/etc\/passwd<\/div>\n<p>The last line should read:<\/p>\n<div class=\"jr_console\">newuser:x:1001:1001::\/home\/newuser:\/bin.bash<\/div>\n<p>You can set the new user&#8217;s password with:<\/p>\n<div class=\"jr_console\">[root@server ~]# passwd newuser<\/div>\n<p>and then enter your chosen password.<\/p>\n<p style=\"text-align: right;\"><em>Job done!<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When it comes to setting up our own servers, there&#8217;s a lot to learn and it&#8217;s often easy to forget the things we learned in the beginning.\u00a0 That&#8217;s where Google, or keeping a handy blog, is a great way of keeping our Top Tech Tips to hand. These Top Tech Tips are some of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":102,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[3],"tags":[5],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tuxfeatured-image.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9cGaH-1n","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":238,"url":"https:\/\/www.1st4computing.co.uk\/services\/dovecot-ssl_ca_file\/","url_meta":{"origin":85,"position":0},"title":"Dovecot `ssl_ca_file`","date":"26th September 2017","format":false,"excerpt":"In your maillog, at \/var\/log\/maillog, you may see a warning error similar to this: server dovecot: config: Warning: Obsolete setting in \/etc\/dovecot\/dovecot.conf:104: ssl_ca_file has been replaced by ssl_ca = <file This is easily fixed in Webmin by going to Webmin > Servers > Dovecot IMAP\/POP3 Server and clicking the [Edit\u2026","rel":"","context":"In &quot;Tech Tips&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Webmin-featured-image-e1513762715517.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":235,"url":"https:\/\/www.1st4computing.co.uk\/services\/restart\/","url_meta":{"origin":85,"position":1},"title":"Restart","date":"25th September 2017","format":false,"excerpt":"It's often necessary to restart your virtual server.\u00a0 This can be done through your control panel, or at the command line with this command: [root@server ~]# shutdown -r now That's it.\u00a0 The \"-r\" switch simply means \"reboot\" after shutdown. Job done!","rel":"","context":"In &quot;Tech Tips&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tuxfeatured-image.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":394,"url":"https:\/\/www.1st4computing.co.uk\/services\/server-updates-8\/","url_meta":{"origin":85,"position":2},"title":"Server Updates","date":"7th June 2018","format":false,"excerpt":"Today, we\u2019ve updated our servers to the latest versions of linux-firmware. Need to update your server?\u00a0 Talk to us today\u2026","rel":"","context":"In &quot;Server Updates&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tuxfeatured-image.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":348,"url":"https:\/\/www.1st4computing.co.uk\/services\/server-updates\/","url_meta":{"origin":85,"position":3},"title":"Server updates","date":"22nd January 2018","format":false,"excerpt":"Today, we've updated our servers to the latest versions of linux-firmware, webmin-virtualmin-git, webmin-virtualmin-registrar, and microcode_ctl. Need to update your server? Talk to us today\u2026","rel":"","context":"In &quot;Server Updates&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tuxfeatured-image.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":269,"url":"https:\/\/www.1st4computing.co.uk\/services\/server-update\/","url_meta":{"origin":85,"position":4},"title":"Server update","date":"24th October 2017","format":false,"excerpt":"Today we've updated the Linux Kernel on our servers from 3.10.0-693.2.2.el7.x86_64 to 3.10.0-693.5.2.el7.x86_64.","rel":"","context":"In &quot;Server Updates&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tuxfeatured-image.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":335,"url":"https:\/\/www.1st4computing.co.uk\/services\/server-update-2\/","url_meta":{"origin":85,"position":5},"title":"Server Update","date":"6th December 2017","format":false,"excerpt":"Today we\u2019ve updated the Linux Kernel on our servers to 3.10.0-693.11.1.el7. Need to update your server?\u00a0 Talk to us today\u2026","rel":"","context":"In &quot;Server Updates&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.1st4computing.co.uk\/services\/wp-content\/uploads\/2017\/09\/Tuxfeatured-image.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.1st4computing.co.uk\/services\/wp-json\/wp\/v2\/posts\/85"}],"collection":[{"href":"https:\/\/www.1st4computing.co.uk\/services\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.1st4computing.co.uk\/services\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.1st4computing.co.uk\/services\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1st4computing.co.uk\/services\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":11,"href":"https:\/\/www.1st4computing.co.uk\/services\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/www.1st4computing.co.uk\/services\/wp-json\/wp\/v2\/posts\/85\/revisions\/246"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.1st4computing.co.uk\/services\/wp-json\/wp\/v2\/media\/102"}],"wp:attachment":[{"href":"https:\/\/www.1st4computing.co.uk\/services\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1st4computing.co.uk\/services\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1st4computing.co.uk\/services\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}