{"id":12103,"date":"2021-10-25T10:16:48","date_gmt":"2021-10-25T10:16:48","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=12103"},"modified":"2021-10-25T10:16:48","modified_gmt":"2021-10-25T10:16:48","slug":"change-username-directadmin-account","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/","title":{"rendered":"How to Change Username for your DirectAdmin Account?"},"content":{"rendered":"<p>Only admins have the authority to change the username of a DirectAdmin account. However, the tool to alter a username has been removed from the DirectAdmin interface since April 2021.<\/p>\n<p>In this tutorial, we will show you how to do it via SSH access.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-warning kb-wisdom-wrapr-red\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Warning<\/strong>: Changing the username will make all data for that account inaccessible. That is why we recommend you take a full data backup before proceeding.<\/p>\n<\/div>\n<\/div>\n<h2>To Change Username<\/h2>\n<p>1. Confirm if the new username is available. Run the following command to check:<\/p>\n<pre class=\"font-size:15 line-height:20 lang:default decode:true\"># cat \/etc\/passwd | grep NEWUSERNAME\r\n<\/pre>\n<p>If it is available and ready to use,\u00a0you will get an empty response.<\/p>\n<p>2. Change the username with these commands:<\/p>\n<pre class=\"font-size:15 line-height:20 lang:default decode:true\"># cd \/usr\/local\/directadmin\/scripts\r\n# .\/change_username.sh OLDUSERNAME NEWUSERNAME<\/pre>\n<p>&nbsp;<\/p>\n<p>DirectAdmin will change the username in this way:<\/p>\n<div class=\"kb-box-focus kb-box-focus-rounded kb-box-focus-grey\">[root@test \/]# cat \/etc\/passwd | grep newusername<br \/>\n[root@test \/]# cd \/usr\/local\/directadmin\/scripts<br \/>\n[root@test scripts]# .\/change_username.sh oldusername\u00a0newusername<br \/>\nKilling User processes:<br \/>\n[root@test scripts]#<\/div>\n<p>3. To confirm, rerun the cat command:<\/p>\n<pre class=\"font-size:15 line-height:20 lang:default decode:true \"># cat \/etc\/passwd | grep NEWUSERNAME\r\n<\/pre>\n<p>This time, the result will look something like this:<\/p>\n<div class=\"kb-box-focus kb-box-focus-rounded kb-box-focus-grey\">[root@test scripts]# cat \/etc\/passwd | grep newusername<br \/>\nnewusername:x:1243:1246::\/home\/newusername\/bin\/false<br \/>\n[root@test scripts]#<\/div>\n<p>4. Reconfigure the settings for your website.<\/p>\n<ul>\n<li>Change the path of the hosting account according to the new username. (\/home\/NEWUSERNAME\/)<\/li>\n<li>Change the database names and update them accordingly.<\/li>\n<\/ul>\n<p>That&#8217;s all you need to do to change the username of your DirectAdmin account.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Only admins have the authority to change the username of a DirectAdmin account. However, the tool to alter a username has been removed from the DirectAdmin interface since April 2021. In this tutorial, we will show you how to do it via SSH access. Warning: Changing the username will make all data for that account [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1777,41],"tags":[2594,2593,1780,2549,2588,1786],"class_list":["post-12103","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-directadmin","category-howtos","tag-change-username","tag-change-username-directadmin","tag-directadmin","tag-directadmin-admin-account","tag-directadmin-command","tag-directadmin-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Change Username for your DirectAdmin Account?<\/title>\n<meta name=\"description\" content=\"This guide will explain all the steps and details you will need to change the username for your DirectAdmin account via SSH access.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change Username for your DirectAdmin Account?\" \/>\n<meta property=\"og:description\" content=\"This guide will explain all the steps and details you will need to change the username for your DirectAdmin account via SSH access.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-25T10:16:48+00:00\" \/>\n<meta name=\"author\" content=\"Prasad Khartadkar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Khartadkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/\",\"name\":\"How to Change Username for your DirectAdmin Account?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2021-10-25T10:16:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"description\":\"This guide will explain all the steps and details you will need to change the username for your DirectAdmin account via SSH access.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change Username for your DirectAdmin Account?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"caption\":\"Prasad Khartadkar\"},\"description\":\"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change Username for your DirectAdmin Account?","description":"This guide will explain all the steps and details you will need to change the username for your DirectAdmin account via SSH access.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/","og_locale":"en_GB","og_type":"article","og_title":"How to Change Username for your DirectAdmin Account?","og_description":"This guide will explain all the steps and details you will need to change the username for your DirectAdmin account via SSH access.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-10-25T10:16:48+00:00","author":"Prasad Khartadkar","twitter_misc":{"Written by":"Prasad Khartadkar","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/","name":"How to Change Username for your DirectAdmin Account?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2021-10-25T10:16:48+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"description":"This guide will explain all the steps and details you will need to change the username for your DirectAdmin account via SSH access.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/change-username-directadmin-account\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Change Username for your DirectAdmin Account?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","caption":"Prasad Khartadkar"},"description":"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"views":295,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=12103"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12103\/revisions"}],"predecessor-version":[{"id":12104,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12103\/revisions\/12104"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=12103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=12103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=12103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}