Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Change username

Discussion in 'General Discussion' started by freddo, Jul 3, 2008.

  1. freddo

    freddo Member

    Joined:
    Feb 19, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Vienna
    Hi,
    I messed up a bit, and now I wonder, which file(s) gets changed when you edit the username with the function "modify an account" in WHM.

    Thanks for your help
    freddo
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    68
    It will modify the entry for the new username in below files:

    /etc/passwd
    /etc/shadow
    /etc/group
    /etc/gshadow

    Update quotas
    `/etc/proftpd/oldusername' -> `/etc/proftpd/newusername'
    `/var/cpanel/users/oldusername' -> `/var/cpanel/users/newusername'
    `/home/oldusername' -> `/home/newusename
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. freddo

    freddo Member

    Joined:
    Feb 19, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Vienna
    Thanks a lot!!:)
     
  4. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    68
    My pleasure! :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice