Skip to main content

Domain user via shell, now I cannot remove the domain and user still shows in WHM

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! It might actually be easier to recreate the user in the operating system than to try and manually remove all the files on the system related to that account. The user would need to have the same UID and GID in order for cPanel to recognize that, so that may not be possible without restoring the /etc/passwd file on the system. If that isn't possible, I'd recommend using the following tool to manually find the location of the cPanel user files and get those removed: alias acctinfo="/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/cPanelInc/tech-acctinfo/master/acctinfo)"
    To use the tool once it is installed, just run this: acctinfo cPanelUser
    You can also use domain.com instead of cPanelUser, which you may need to do if the user doesn't exist.
    0
  • SergievM
    Hi, I am trying to remove or change rights of some accounts within a domain Cpanel account. I'm having some difficulty with the user account menu. So I thought I could do it via the terminal? I was told ch mod ch change
    However, i don't know what would be the terminal comands:
    • the search user command
    • the list rights command
    • the change command
    • or delete user command
    For a CentOS install. The object is that some users no longer have domain root access or FTP? Sorry, if this appears to be a trival questons. Any and all suggestions are welcomed. thanks,
    0
  • cPRex Jurassic Moderator
    @SergievM - the chmod command changes permissions of files/folders, while chown changes the ownership of the files/folders. What specific issues are you having with the server?
    0

Please sign in to leave a comment.