• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
iGuRu

iGuRu

Real-time Technology News. Opinions & Tweaks

  • / news
  • / infosec
  • / tools
  • / tweaks
  • / dummies
  • / opinions
  • / support
  • / yourpost
home / tweaks / Ubuntu Server enable automatic security updates

Ubuntu Server enable automatic security updates

14/08/2020 08:49 by giorgos

System administrators should constantly monitor and implement security updates. If these updates are neglected, the servers end up vulnerable, which could lead to attacks and data theft.

We know that this is a task that can be ignored, especially when other problems are constantly arising. So below we will see how you can enable automatic security updates on servers running Ubuntu.ubuntu - Ubuntu Server enable automatic security updates

Connect to your server and install the unattended upgrade package with the command:

sudo apt-get install unattended-upgrades -y

Then install the common-notifier-update package for automatic restarts with the command:

 

sudo apt-get install update-notifier-common -y

Then edit the 50unattended-upgrades file with the command:

sudo nano /./apt/apt.conf.d/50unattended-upgrades

By default, security updates are enabled, so you do not have to deal with this section. However, you may want to enable automatic restarts.

Scroll down to this section and you can set whether the automatic restarts will take place immediately or at a specific time.

To enable automatic restarts, remove the // characters from the line Unattended-Upgrade :: Automatic-Reboot “false” and change false to true.

Then you can do the same in the line "Unattended-Upgrade :: Automatic-Reboot-Time" 02:00 "? and set the time you want the automatic restart to take place (so that it does not happen during a period when the server is used too much).

If you do not want to enable auto-restarts, you should at least enable auto-updates. If you now want to see if a reboot is pending on your server, give the command:

cat /was/run/reboot-required

Restart your machine, you are ready.

Ubuntu Server enable automatic security updates was last modified: 14 August, 2020, 8: 49 am by giorgos

spread the news

  • Facebook
  • Twitter
  • Reddit
  • Printing
  • Email

Read them Technology News from all over the world, with the validity of iGuRu.gr

Follow us on Google News


Competition: tweakstag: ubuntu

You May Also Like

Canonical
Canonical withdraws Intel updates on Tiger Lake
Canonical wins big deal with MTS
Ubuntu 21.04 on April 22, 2021

About Us giorgos

George still wonders what he's doing here ...

Previous Post: « Ubuntu 16.04.7, 18.04.5 security updates
Next Post: They knowingly send vulnerable code despite using AppSec tools »

Reader Interactions

Comment Policy:

IGuRu.gr does not publish the comments immediately. Malicious comments, comments that include ads, or comments that are offensive are deleted without notice. We do not adopt the opinions expressed by our readers.
Your comments will be displayed after approval by the administrators


Leave your comment
Ακύρωση απάντησης

Your email address is not published. Τα υποχρεωτικά πεδία σημειώνονται με *

 

 © 2021 · iGuRu.gr · ☢ · Keep It Simple Stupid Genesis theme

about  ·   get in touch  ·  rss  ·  sitemap  ·  cough

loading Cancel
Could not post post - check your email address!
Email verification failed, please try again
Your blog can not post posts via email.