<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Security, Maintenance and Recovery on OpenBSD Handbook</title><link>https://www.openbsdhandbook.com/howto/maintenance/</link><description>Recent content in Security, Maintenance and Recovery on OpenBSD Handbook</description><generator>Hugo</generator><language>en</language><atom:link href="https://www.openbsdhandbook.com/howto/maintenance/index.xml" rel="self" type="application/rss+xml"/><item><title>Establish a Conservative Security Baseline</title><link>https://www.openbsdhandbook.com/security-baseline/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.openbsdhandbook.com/security-baseline/</guid><description>&lt;h2 id="synopsis"&gt;
 Synopsis
 &lt;a class="anchor" href="#synopsis"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;OpenBSD begins with a small enabled-service set and integrated exploit mitigations. A useful hardening baseline preserves those defaults, removes unnecessary authority, and makes changes observable and recoverable. It does not consist of an imported sysctl list, a third-party kernel, or disabling platform security mechanisms to make applications work.&lt;/p&gt;
&lt;p&gt;This guide establishes a conservative host baseline. Service-specific policy still belongs in the relevant Handbook chapter and threat model.&lt;/p&gt;</description></item><item><title>Recover Access and Reset the Root Password</title><link>https://www.openbsdhandbook.com/reset-root-password/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.openbsdhandbook.com/reset-root-password/</guid><description>&lt;h2 id="synopsis"&gt;
 Synopsis
 &lt;a class="anchor" href="#synopsis"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;An administrator with authorized console access can reset the root password from single-user mode. The procedure boots a minimal root shell, checks and mounts the installed filesystems read-write, runs &lt;a href="https://man.openbsdhandbook.com/man.cgi?page=passwd&amp;amp;section=1" target="_blank" rel="noopener noreferrer"&gt;passwd(1)&lt;/a&gt;

, and resumes multiuser operation.&lt;/p&gt;
&lt;p&gt;This is a recovery procedure for systems under the administrator&amp;rsquo;s control. Console access is a privileged security boundary. Encrypted root storage still requires its passphrase or keydisk before single-user mode can reach the installed system.&lt;/p&gt;</description></item><item><title>Collect OpenBSD Diagnostic Evidence</title><link>https://www.openbsdhandbook.com/collect-diagnostics/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.openbsdhandbook.com/collect-diagnostics/</guid><description>&lt;h2 id="synopsis"&gt;
 Synopsis
 &lt;a class="anchor" href="#synopsis"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Useful OpenBSD diagnostics identify the failing layer, preserve the first error, and include enough system context to reproduce the problem. A complete dump of &lt;code&gt;/etc&lt;/code&gt;, &lt;code&gt;/var/log&lt;/code&gt;, or a user profile usually adds secrets without clarifying the failure. This guide explains what to collect for troubleshooting, support requests, and bug reports.&lt;/p&gt;
&lt;p&gt;Collect evidence as soon as practical after the failure. Rebooting, restarting a daemon, loading a new PF ruleset, or updating packages can erase the state that explains the problem.&lt;/p&gt;</description></item><item><title>Troubleshoot Package Installation and Update Failures</title><link>https://www.openbsdhandbook.com/pkg-add-troubleshooting/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.openbsdhandbook.com/pkg-add-troubleshooting/</guid><description>&lt;h2 id="synopsis"&gt;
 Synopsis
 &lt;a class="anchor" href="#synopsis"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;OpenBSD packages are built for a specific architecture and base-system branch. Most &lt;a href="https://man.openbsdhandbook.com/man.cgi?page=pkg_add&amp;amp;section=1" target="_blank" rel="noopener noreferrer"&gt;pkg_add(1)&lt;/a&gt;

 failures result from an unsupported release, an unexpected package source, a base/package mismatch, temporary snapshot lag, an unavailable package or flavor, or an interrupted transaction.&lt;/p&gt;
&lt;p&gt;This guide preserves the first error, identifies the branch and source, and restores consistency before attempting repair. It does not use force flags, unsigned repositories, database deletion, or manual library copying as general remedies.&lt;/p&gt;</description></item><item><title>Schedule Recurring Maintenance</title><link>https://www.openbsdhandbook.com/scheduled-maintenance/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.openbsdhandbook.com/scheduled-maintenance/</guid><description>&lt;h2 id="synopsis"&gt;
 Synopsis
 &lt;a class="anchor" href="#synopsis"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;OpenBSD uses &lt;a href="https://man.openbsdhandbook.com/man.cgi?page=cron&amp;amp;section=8" target="_blank" rel="noopener noreferrer"&gt;cron(8)&lt;/a&gt;

 for scheduled commands and runs the base-system &lt;code&gt;daily&lt;/code&gt;, &lt;code&gt;weekly&lt;/code&gt;, and &lt;code&gt;monthly&lt;/code&gt; maintenance scripts from root&amp;rsquo;s crontab. Local jobs should run as the least-privileged suitable account, use explicit paths, prevent unintended overlap, and report failure to a monitored mailbox.&lt;/p&gt;
&lt;p&gt;This guide adds one local job, verifies its non-interactive behavior, and explains when to use a user crontab or a &lt;code&gt;daily.local&lt;/code&gt; file. It does not place credentials directly in a crontab or modify the base &lt;code&gt;/etc/daily&lt;/code&gt;, &lt;code&gt;/etc/weekly&lt;/code&gt;, or &lt;code&gt;/etc/monthly&lt;/code&gt; scripts.&lt;/p&gt;</description></item><item><title>Monitor an OpenBSD System</title><link>https://www.openbsdhandbook.com/monitor-openbsd/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.openbsdhandbook.com/monitor-openbsd/</guid><description>&lt;h2 id="synopsis"&gt;
 Synopsis
 &lt;a class="anchor" href="#synopsis"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Start with OpenBSD’s base tools for local monitoring before adding an external platform. This guide covers resource use, services, hardware sensors, logs, scheduled reports, updates, and optional remote monitoring.&lt;/p&gt;
&lt;p&gt;Monitoring must produce an actionable signal. Record normal values before setting thresholds, direct root&amp;rsquo;s local mail to an actively read mailbox, and test each notification path.&lt;/p&gt;
&lt;h2 id="establish-a-resource-baseline"&gt;
 Establish a Resource Baseline
 &lt;a class="anchor" href="#establish-a-resource-baseline"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Use &lt;a href="https://man.openbsdhandbook.com/man.cgi?page=systat&amp;amp;section=1" target="_blank" rel="noopener noreferrer"&gt;systat(1)&lt;/a&gt;

 for interactive views and &lt;a href="https://man.openbsdhandbook.com/man.cgi?page=vmstat&amp;amp;section=8" target="_blank" rel="noopener noreferrer"&gt;vmstat(8)&lt;/a&gt;

 for interval samples:&lt;/p&gt;</description></item><item><title>Back Up and Restore an OpenBSD System</title><link>https://www.openbsdhandbook.com/backup-restore/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.openbsdhandbook.com/backup-restore/</guid><description>&lt;h2 id="synopsis"&gt;
 Synopsis
 &lt;a class="anchor" href="#synopsis"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;A usable backup has an independent copy, a known retention policy, integrity checks, and a tested restore procedure. OpenBSD provides &lt;a href="https://man.openbsdhandbook.com/man.cgi?page=dump&amp;amp;section=8" target="_blank" rel="noopener noreferrer"&gt;dump(8)&lt;/a&gt;

 and &lt;a href="https://man.openbsdhandbook.com/man.cgi?page=restore&amp;amp;section=8" target="_blank" rel="noopener noreferrer"&gt;restore(8)&lt;/a&gt;

 for FFS filesystems, plus the &lt;code&gt;/altroot&lt;/code&gt; facility for a local root-filesystem copy.&lt;/p&gt;
&lt;p&gt;RAID, disk encryption, and &lt;code&gt;/altroot&lt;/code&gt; solve different problems. RAID preserves availability after some disk failures. Encryption protects confidentiality. &lt;code&gt;/altroot&lt;/code&gt; provides a nearby root copy. None replaces an offline or off-host backup.&lt;/p&gt;
&lt;h2 id="inventory-the-restore-scope"&gt;
 Inventory the Restore Scope
 &lt;a class="anchor" href="#inventory-the-restore-scope"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Record filesystems, disklabel UIDs, mount options, softraid volumes, boot method, and installed packages:&lt;/p&gt;</description></item><item><title>Configure softraid RAID1</title><link>https://www.openbsdhandbook.com/softraid-raid1/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.openbsdhandbook.com/softraid-raid1/</guid><description>&lt;h2 id="synopsis"&gt;
 Synopsis
 &lt;a class="anchor" href="#synopsis"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;The RAID 1 discipline of &lt;a href="https://man.openbsdhandbook.com/man.cgi?page=softraid&amp;amp;section=4" target="_blank" rel="noopener noreferrer"&gt;softraid(4)&lt;/a&gt;

 mirrors data across two or more chunks. The assembled volume appears as a normal &lt;a href="https://man.openbsdhandbook.com/man.cgi?page=sd&amp;amp;section=4" target="_blank" rel="noopener noreferrer"&gt;sd(4)&lt;/a&gt;

 disk and is partitioned and formatted at that virtual layer.&lt;/p&gt;
&lt;p&gt;RAID1 improves availability after a component failure. It does not protect against deletion, corruption, compromise, fire, theft, or an error applied to the mirror. Maintain and test independent backups.&lt;/p&gt;
&lt;p&gt;This procedure destroys all data on the selected component partitions. Disk names can change whenever hardware or installation media changes. Identify devices by model, size, attachment, and disklabel UID before every destructive command.&lt;/p&gt;</description></item><item><title>Recover an OpenBSD System That Does Not Boot</title><link>https://www.openbsdhandbook.com/boot-recovery/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.openbsdhandbook.com/boot-recovery/</guid><description>&lt;h2 id="synopsis"&gt;
 Synopsis
 &lt;a class="anchor" href="#synopsis"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Boot recovery starts by identifying the failing stage. Firmware must select a device, primary boot code must load the OpenBSD boot loader, the boot loader must read a kernel, the kernel must select and check filesystems, and the service configuration must reach multi-user mode.&lt;/p&gt;
&lt;p&gt;This guide provides a conservative recovery sequence. It does not assume that disk numbers remain the same, and it does not rewrite partition tables or boot blocks until the disk and cause of failure are clear.&lt;/p&gt;</description></item></channel></rss>