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!

Bash script get user info

Discussion in 'cPanel Developers' started by ema_eltuti, Mar 26, 2018.

  1. ema_eltuti

    ema_eltuti Registered

    Joined:
    Jun 16, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Argentina
    cPanel Access Level:
    Root Administrator
    Hello,

    into cpanel exits and script to get user information? (example, password , home directory)

    usr/local/cpanel/scripts/data.sh -a user

    user
    pass
    home directory

    Regards,
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,389
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You could extract the account username and document root data from the following file:

    Code:
    /etc/userdatadomains
    The password is not stored in plaintext format so you won't be able to view the actual password. The encrypted password data is stored in the /etc/shadow file.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ema_eltuti

    ema_eltuti Registered

    Joined:
    Jun 16, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Argentina
    cPanel Access Level:
    Root Administrator
    my question is if there is any way to do it automatically from the server console, I use Centos 7.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,389
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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