Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    153

    Default Changing Username

    When trying to change a users username using the modify an account function in WHM we get this message.....

    FIXME: This functionality is currently not implemented
    Unable to change user name

    How can we change a users username if this doesnt work?

  2. #2
    Member
    Join Date
    Oct 2002
    Posts
    12

    Default FIXME: This functionality is currently not implemented

    Yes I am having the same problem trying to change a username.

  3. #3
    Member
    Join Date
    Apr 2002
    Posts
    194

    Default

    [quote:d5ee9c92d9][i:d5ee9c92d9]Originally posted by macian[/i:d5ee9c92d9]

    Yes I am having the same problem trying to change a username.[/quote:d5ee9c92d9]
    I think you cannot change username from WHM because this functionality hasn't been implemented yet by Developers

  4. #4
    Member
    Join Date
    May 2002
    Posts
    46

    Default

    you can not change usernames at this time... only way around it is to terminate the account and recreate....
    luke

  5. #5
    Member
    Join Date
    Mar 2003
    Posts
    52

    Default

    Well this creates a real problem for me since I need to transfer 2 accounts from 2 different servers both of which have the same username. Any ideas anybody?

  6. #6
    Member Johnnie Nelke's Avatar
    Join Date
    Jan 2003
    Location
    USA
    Posts
    37

    Default

    You are just going to have to create one of them by hand...... sad fact until CPanel sets this up......
    Time is only fleeting when you are not sitting in a waiting room.

  7. #7
    Member
    Join Date
    Mar 2003
    Posts
    52

    Default

    How about this script? Has anybody tried it and run it sucessfully? Copying either of these two by hand and setting things up properly would be a real pain, and it is also my understanding that the account would and could not then be recognized by cpanel, ... is this true?

  8. #8
    Member
    Join Date
    Mar 2002
    Posts
    11

    Default

    Here is a script to rename users.

    http://forums.burst.net/showthread.php?s=&threadid=37

    compliments of TheVoice

    <edit>
    And of course brandonk
    </edit>


    cd /
    pico

    Then copy the following code and right click to paste it into your pico session.

    code:
    --------------------------------------------------------------------------------

    #!/bin/sh
    # old username
    username1='oldusername'

    # new username
    username2='newusername'


    # edit /etc/passwd
    perl -pi -e "s/$username1/$username2/g" /etc/passwd

    # edit /etc/shadow
    perl -pi -e "s/$username1/$username2/g" /etc/shadow

    # edit /etc/group
    perl -pi -e "s/$username1/$username2/g" /etc/group

    #going into users directory
    cd /var/cpanel/users

    # chaning cpanel file
    mv $username1 $username2

    # editing httpd.conf
    perl -pi -e "s/User $username1/User $username2/g" /usr/local/apache/conf/httpd.conf
    perl -pi -e "s/Group $username1/Group $username2/g" /usr/local/apache/conf/httpd.conf
    perl -pi -e "s&/home/$username1/&/home/$username2/&g" /usr/local/apache/conf/httpd.conf

    #going into home directory
    cd /home

    # moving main directory
    mv $username1 $username2

    # replacing every instance of /home/username in every file in the new main directory
    # this will fix most cgi problems with changing directory paths
    # if you don't need this comment it out as it takes awhile
    find /home/$username1 -type f -exec perl -pi -e "s/\/home\/$username1/\/home\/$username2/g" {} \;

    # setting permissions
    chown -R $username2 /home/$username2
    chgrp -R $username2 /home/$username2

    # running necessary cpanel updates
    /scripts/updateuserdomains
    /scripts/mailperm
    /scripts/ftpupdate

    --------------------------------------------------------------------------------

    Make sure you edit the file at the top to have the old and new username before you save it.

    Type Cntr-X and save as usernamechange. Do not put an extension on the file.

    Then type ./usernamechange and watch the magic.

    restart apache after changing usernames

    /etc/rc.d/init.d/httpd restart

    -/Steve
    Last edited by spoony; 03-24-2003 at 10:40 AM.

  9. #9
    Member
    Join Date
    Mar 2003
    Posts
    52

    Default

    A couple days too late for me. I had to manually rebuild one of my accounts.

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge jackal's Avatar
    Join Date
    Feb 2002
    Posts
    708

    Default

    Works Great ! Thanks Nick

Similar Threads & Tags
Similar threads

  1. Changing Root Username
    By CompufixHosting in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-12-2006, 08:39 PM
  2. Changing WHM username
    By icontact in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-25-2005, 09:31 AM
  3. BUG: when changing username
    By cass in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-18-2003, 09:48 PM
  4. Changing mail username
    By keyDet79 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-16-2003, 05:06 AM
  5. Changing username in WHM
    By semaj in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-29-2002, 06:43 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube