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!

Inquiries about Modifying a cPanel User Password

Discussion in 'Security' started by MHD_MUS, May 6, 2014.

  1. MHD_MUS

    MHD_MUS Member

    Joined:
    Jun 29, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    1- What are all the possible methods to modify the password for a cPanel user. The more details the better.
    2- How to know when and how the last password modification for a specific cPanel user was done?
    3- Is there a shell utility or similar to list all the Cron Jobs recorded on a server?

    Your contribution is appreciated,
    Thanks in advance,
    Regards.
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    829
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    1) Via cPanel -> Change password
    2) Via WHM -> Password Modification
    3) Via CLI, with the 'passwd' command
    4) Via the WHM API: https://documentation.cpanel.net/display/SDK/WHM+API+0+-+passwd

    If it was done via methods 1, 2, or 4, it would be in the cPanel access logs (/usr/local/cpanel/logs/access_log). In any case, you can use auditd to track certain account modifications, but it does require a manual setup:

    Using audit in Linux to track system changes and unauthorized access ~ GoLinuxHub


    To list crons:

    Code:
    for user in $(/bin/ls -A /var/cpanel/users) ; do crontab -l -u $user ; done
    
    Or:

    Code:
    cat /var/spool/cron/*
    
    To see crons that have run, check /var/log/cron.

    Hope this helps.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. MHD_MUS

    MHD_MUS Member

    Joined:
    Jun 29, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks Vanessa for your help,

    Is there a SSH command to dump the whole access log to my desktop for deeper analysis?

    Regards.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    You could simply download the file using SFTP with a client such as FileZilla if necessary.

    Thank you.
     
    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