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.

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:
    817
    Likes Received:
    22
    Trophy Points:
    18
    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.
     
  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:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator

Share This Page