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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    42,734
    Likes Received:
    1,706
    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.
     
  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:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page