# Changing domain name after account creation

**URL:** <https://forums.interworx.com/t/changing-domain-name-after-account-creation/9202>\
**Category:** General Discussion\
**Created:** [October 5, 2004, 1:51pm UTC](https://forums.interworx.com/t/changing-domain-name-after-account-creation/9202 "2004-10-05T13:51:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forums.interworx.com/uploads/default/original/2X/4/40ab17cc34b792a0172b48ad1333b9ba9299a9a1.png) [@system](https://forums.interworx.com/u/system)\
**Post date:** [October 5, 2004, 1:51pm UTC](https://forums.interworx.com/t/changing-domain-name-after-account-creation/9202/1 "2004-10-05T13:51:57Z")

</div>

I’d like to change a domian name after account creation. I pretty much put in a bogus domain name to force a certian UNIX user name. What would I need to change to change the domian name for the account by hand?

---

<div class="post-metadata">

**Author:** ![system](https://forums.interworx.com/uploads/default/original/2X/4/40ab17cc34b792a0172b48ad1333b9ba9299a9a1.png) [@system](https://forums.interworx.com/u/system)\
**Post date:** [October 6, 2004, 1:39pm UTC](https://forums.interworx.com/t/changing-domain-name-after-account-creation/9202/2 "2004-10-06T13:39:19Z")

</div>

Unfortunatly you cannot just flat out change the domain name.

What I suggest is creating the new on, copying the data over, and then changing the owner.

---

<div class="post-metadata">

**Author:** ![Paul](https://forums.interworx.com/user_avatar/forums.interworx.com/paul/32/6_2.png) [@Paul](https://forums.interworx.com/u/Paul)\
**Post date:** [October 6, 2004, 1:53pm UTC](https://forums.interworx.com/t/changing-domain-name-after-account-creation/9202/3 "2004-10-06T13:53:16Z")

</div>

eDixon is right, changing the domain is easier said than done.  
If you goal is to force a particular unix user name, I recommend doing the following:

1. set up the SiteWorx account with the real domain name
2. useradd \<newusername\>
3. edit the /etc/passwd file, change the \<newusername\> line so that the uid and gid sections match that of the user that was added by NodeWorx, and change the homedir to match as well.
4. passwd \<newusername\>

That will allow you to login with the username you want to use.

Paul
