{"id":13758,"date":"2023-09-05T10:42:15","date_gmt":"2023-09-05T15:42:15","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/?p=13758"},"modified":"2023-09-20T12:18:34","modified_gmt":"2023-09-20T17:18:34","slug":"change-the-login-on-an-oracle-8-linux-computer","status":"publish","type":"post","link":"https:\/\/cyflex.com\/index.php\/change-the-login-on-an-oracle-8-linux-computer\/","title":{"rendered":"Change the Login on an Oracle 8 Linux Computer"},"content":{"rendered":"<h4>Pre-requisites:<\/h4>\n<p>You must be logged into a different account to change the username for the desired account.<\/p>\n<p>If you don&#8217;t already have a separate account to use, create one by running the following at the command prompt:<br \/>\n<span style=\"font-family: 'courier new', courier, monospace;\">sudo useradd -l &lt;<em>new_username<\/em>&gt; -d \/home\/&lt;<em>new_username<\/em>&gt;<br \/>\n<\/span>You must also disable Automatic Login of the account for which you are changing the username and then reboot into a different account from the one for which you are changing the username.<\/p>\n<p>Refer to step 2 below to enable\/disable Automatic Login.<\/p>\n<h4>Steps:<\/h4>\n<ol>\n<li>Go to <strong>Settings<\/strong> -&gt; <strong>Details<\/strong> -&gt; <strong>Users<\/strong>. <br \/>\nSelect the account to modify.<br \/>\nClick <strong>Unlock<\/strong> and enter the current password to enable for editing user information. The top box is the login name &#8211; change it to match the new username you used or will use in the usermod command.<\/li>\n<li>Enable Automatic Login. Go to <strong>Settings<\/strong> -&gt; <strong>Details<\/strong> -&gt; <strong>Users<\/strong>. <br \/>\nSelect the account to modify. <br \/>\nClick <strong>Unlock<\/strong> and toggle <strong>Automatic Login<\/strong> to <strong>ON<\/strong> from <strong>OFF<\/strong>.<\/li>\n<li>\n<p>Execute the following from the command prompt:<br \/>\n<span style=\"font-family: 'courier new', courier, monospace;\">sudo usermod -l &lt;<em>NEW_USERNAME<\/em>&gt; -d \/home\/&lt;<em>NEW_USERNAME<\/em>&gt; -m &lt;<em>OLD_USERNAME<\/em>&gt;<br \/>\n<\/span><strong>Note:<\/strong> For the next step, the NEW_GROUP_NAME should match the NEW_USERNAME and the OLD_GROUP_NAME should match the OLD_USERNAME.<\/p>\n<\/li>\n<li>\n<p>Execute the following from the command prompt:<br \/>\n<span style=\"font-family: 'courier new', courier, monospace;\">sudo groupmod -n &lt;<em>NEW_GROUP_NAME<\/em>&gt; &lt;<em>OLD_GROUP_NAME<\/em>&gt;\u00a0<\/span><\/p>\n<\/li>\n<li>\n<p>Reboot the computer. When the reboot completes, the pre-existing <span style=\"font-family: 'courier new', courier, monospace;\">\/home\/&lt;OLD_USERNAME&gt;<\/span> should be:\u00a0<br \/>\n<span style=\"font-family: 'courier new', courier, monospace;\">\/home\/&lt;NEW_USERNAME&gt;<\/span>.<\/p>\n<p><strong>Note:<\/strong> For step 6, ensure you are logged in on the account matching the username to that which you changed.<\/p>\n<\/li>\n<li>If using VNC, change the username in the following file:<br \/>\n<span style=\"font-family: 'courier new', courier, monospace;\">$HOME\/.config\/systemd\/user\/x0vncserver.service<\/span><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Pre-requisites: You must be logged into a different account to change the username for the desired account. If you don&#8217;t already have a separate account to use, create one by running the following at the command prompt: sudo useradd -l &lt;new_username&gt; -d \/home\/&lt;new_username&gt; You must also disable Automatic Login of the account for which you [&hellip;]<\/p>\n","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-13758","post","type-post","status-publish","format-standard","hentry","category-faq"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/posts\/13758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=13758"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/posts\/13758\/revisions"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=13758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/categories?post=13758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/tags?post=13758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}