Меню Рубрики

Linux ubuntu security update

Information Security Squad

stay tune stay secure

Как вручную устанавливать обновления безопасности на Ubuntu 18.04

Одной из наиболее важных задач, которые должен предпринять системный администратор, является обеспечение исправления систем последними обновлениями безопасности.

Ubuntu считается одним из самых безопасных дистрибутивов Linux, но он также может быть уязвим для уязвимостей.

Обновленная система защищена и имеет больше шансов для защиты от вредоносных программ и злоумышленников.

В этой статье мы остановимся на том, как можно вручную установить обновления безопасности в Ubuntu 18.04.

Список обновлений безопасности

Чтобы отображать только обновления для системы безопасности,

Если вы хотите отобразить все обновляемые пакеты, выполните

Наконец, чтобы установить обновления безопасности, запустите

Вручную установите обновления безопасности

Чтобы вручную настроить систему для обновлений безопасности,

Во-первых, установите пакет обновления

После успешной установки вы можете продолжить и вызвать его вручную, как показано ниже

Флаги -v выдает процесс в подробном виде в командной строке.

-d обрабатывают отладочные сообщения в системе.

Настройка автоматических обновлений безопасности

Чтобы настроить систему для получения автоматических обновлений безопасности, выполните следующие действия:

1. Установите пакеты автоматического обновления

Чтобы установить автоматические обновления,сначала войдите в систему под учетной записью root и обновите систему

Затем установите автоматические обновления

2. Настройте систему Ubuntu

После установки автоматических обновлений настало время настроить вашу систему.

Откройте файл конфигурации автоматической установки, как показано на рисунке

Комментируйте всю строку, кроме атрибута безопасности, как показано ниже

Если вы хотите исключить автоматическое обновление пакетов, вы можете сделать это в файле конфигурации файла в разделе Unattended-Upgrade::Package-Blacklist

Добавьте каждый пакет в каждую строку, как показано ниже

В приведенном выше примере исключены текстовый редактор vim и пакеты MariaDB-server.

Сохраните и выйдите из конфигурационного файла.

3. Включить автоматическое обновление

Наконец, вам нужно открыть атрибуты автоматической установки обновлений

Перезагрузите систему, чтобы изменения вступили в силу.

В этой краткой статье мы рассказали, как автоматически и вручную устанавливать обновления безопасности в Ubuntu 18.04.

Вы можете попробовать выполнить приведенные выше команды.

Добавить комментарий Отменить ответ

Онлайн курсы

Рубрики

  • Аудит ИБ (36)
  • Вакансии (9)
  • Закрытие уязвимостей (97)
  • Книги (25)
  • Мануал (1 723)
  • Медиа (65)
  • Мероприятия (33)
  • Мошенники (21)
  • Обзоры (641)
  • Обход запретов (30)
  • Опросы (3)
  • Скрипты (96)
  • Статьи (255)
  • Философия (27)
  • Юмор (14)

Метки

Наш Telegram

Социальные сети

Hack shop

Поделиться

Anything in here will be replaced on browsers that support the canvas element

Источник

Ubuntu Wiki

Upgrades

Introduction

Keeping your computer’s software up to date is the single most important task for protecting your system. Ubuntu can alert you to pending updates, and also be configured to apply updates automatically. Security updates for Ubuntu are announced via Ubuntu Security Notices (USNs).

Desktop

By default, users are notified daily for security updates and weekly for non-security updates. How Ubuntu alerts you as well as configuring your system to install updates automatically can be setup within Update Manager. You can access Update Manager anytime by pressing ‘Alt+F2’, entering ‘update-manager’ and pressing Enter. Its settings can be adjusted by pressing the ‘Settings’ button.

Once Update Manager is open, you can review and select pending updates as well as check for new updates. Simply press the ‘Install Updates’ button to upgrade the selected packages to the updated version.

Server

If the update-notifier-common package is installed, Ubuntu will alert you about pending updates via the message of the day (motd) upon console or remote login.

After logging in, you can check for and apply new updates with:

When performing an update, first review what apt is going to do, then confirm that you want to apply the updates (this is particularly true when running the development release).

If you would prefer to have updates applied automatically, make sure the unattended-upgrades package is installed, then run ‘sudo dpkg-reconfigure unattended-upgrades’ . Please note that updates may restart services on your server, so this may not be appropriate for all environments.

Security/Upgrades (последним исправлял пользователь jdstrand 2011-10-12 21:02:00)

Источник

How to Manually Install Security Updates on Ubuntu 18.04

One of the most crucial tasks that a systems administrator needs to undertake is ensuring that systems are patched with the latest security updates. Ubuntu is considered as one of the most secure Linux distributions but it can be susceptible to vulnerabilities as well. An updated system is secure and stands a better chance against malware and attackers.

In this tutorial, we’ll focus on how one can manually install security updates in Ubuntu 18.04.

List Security Updates

To display security updates only ,

If you wish to display all upgradeable packages run

Sample Output

Finally, to install security updates only, run

Manually Install Security Updates

To manually configure a system for security updates,

First, install unattended-upgrade package

Sample Output

After successful installation, you can proceed and call it manually as shown

Output

The -v flags prints out the process in verbose on a command line.

The -d handle debug messages in the system.

Setting up Automatic security updates

To configure your system to receive automatic security updates, follow the steps below

1. Install Unattended upgrade packages

To install unattended upgrades. First, log in as root and update the system

Next, install unattended-upgrades

2. Configure your Ubuntu system

After installation of Unattended updates, it’s time now to configure your system.
Open the unattended upgrade configuration file as shown

Comment out all line except the one with the security attribute as shown

If you wish to exclude packages from being upgraded unattended, you can do so in the file configuration file under the Unattended-Upgrade::Package-Blacklist section.

Append each package on each line as shown

In the example above, vim text editor and MariaDB-server packages have been excluded. Save and Exit the configuration file.

3. Enable auto updating

Finally, you need to open the unattended-upgrades attributes

Reboot your system for the changes to take effect.

In this brief article, we have taken you through how to automatically and manually install security updates in Ubuntu 18.04. You are welcome to try out the above commands. Keep it locked for more insightful articles!

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • The application x11 could not be opened что делать mac os sierra
  • Th3 overloud mac os
  • Tftp mac os server
  • Tex for mac os
  • Tes 4 oblivion mac os