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.

System Updates by Itself

Discussion in 'General Discussion' started by keat63, May 26, 2016.

  1. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Even though I have updates configured for manual, occasionally, the system will do some sort of automatic update.

    Code:
    /var/log/secure:
    May 26 02:02:49 server sshd[10390]: Received signal 15; terminating.
    May 26 02:02:52 server sshd[16337]: Server listening on 0.0.0.0 port.
    May 26 02:02:52 server sshd[16337]: Server listening on :: port.
    May 26 02:04:56 server useradd[16579]: failed adding user 'ntp', exit code: 9
    May 26 02:07:02 server useradd[16821]: failed adding user 'tcpdump', exit code: 9
    May 26 02:07:46 server sshd[16337]: Received signal 15; terminating.
    May 26 02:07:50 server sshd[16927]: Server listening on 0.0.0.0 port.
    May 26 02:07:50 server sshd[16927]: Server listening on :: port.
    May 26 02:09:34 server runuser: pam_unix(runuser:session): session opened for user root by (uid=0)
    May 26 02:09:34 server runuser: pam_unix(runuser:session): session closed for user root
    
    /var/log/messages:
    May 26 02:02:35 server yum[16117]: Updated: libgcc-4.4.7-17.el6.x86_64
    May 26 02:02:37 server yum[16117]: Updated: bash-4.1.2-40.el6.x86_64
    May 26 02:02:45 server yum[16117]: Updated: glibc-common-2.12-1.192.el6.x86_64
    May 26 02:02:52 server yum[16117]: Updated: glibc-2.12-1.192.el6.x86_64
    May 26 02:02:53 server yum[16117]: Updated: libselinux-2.0.94-7.el6.x86_64
    May 26 02:02:55 server yum[16117]: Updated: glib2-2.28.8-5.el6.x86_64
    May 26 02:02:56 server yum[16117]: Updated: chkconfig-1.3.49.5-1.el6.x86_64
    May 26 02:02:57 server yum[16117]: Updated: audit-libs-2.4.5-3.el6.x86_64
    May 26 02:02:58 server yum[16117]: Updated: krb5-libs-1.10.3-57.el6.x86_64
    May 26 02:02:59 server yum[16117]: Updated: nspr-4.11.0-1.el6.x86_64
    May 26 02:03:00 server yum[16117]: Updated: libxml2-2.7.6-21.el6.x86_64
    May 26 02:03:01 server yum[16117]: Updated: nss-util-3.21.0-2.el6.x86_64
    May 26 02:03:02 server yum[16117]: Updated: tcp_wrappers-libs-7.6-58.el6.x86_64
    May 26 02:03:03 server yum[16117]: Updated: elfutils-libelf-0.164-2.el6.x86_64
    May 26 02:03:04 server yum[16117]: Updated: freetype-2.3.11-17.el6.x86_64
    May 26 02:03:05 server yum[16117]: Updated: libstdc++-4.4.7-17.el6.x86_64
    May 26 02:03:07 server yum[16117]: Updated: gmp-4.3.1-10.el6.x86_64
    May 26 02:03:08 server yum[16117]: Updated: coreutils-libs-8.4-43.el6.x86_64
    
    

    The list continues.
    What is initiating this, how do I stop it an control it manually ?
    What are the implications of doing so.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Home »Server Configuration »Update Preferences
    Whats this option set to?
    Operating System Package Updates
     
  3. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Operating System Package Updates is configured for 'Never Update'
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Check to see if /etc/cron.daily/0yum-daily.cron exists on your system. If so, you likely have the "yum-cron" package installed, which automatically updates your system packages:

    yum-cron(8) - Linux manual page

    Thank you.
     
  5. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I can't see this cron.
    I've not knowingly installed anything, in fact I prefer to do updates manually, so I can control how and when.
    Could there be anything anywhere else ?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Assuming the yum-cron RPM does not exist on your system, and automatic package updates are disabled in cPanel, I suggest opening a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  7. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    7564187.

    Thanks
     
  8. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Support suggested commenting out a line in root cron.

    0 2 * * * yum update -y >> /dev/null 2>&1

    I'm assuming this is var/spool/cron/root ?
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can edit the root cron job while logged in as "root" with the following command:

    Code:
    crontab -e
    It's stored at "/var/spool/cron/root". Note this is not a standard cron job.

    Thank you.
     
Loading...

Share This Page