Questions tagged [openbsd]

OpenBSD is a BSD variant with a strong security and code correctness focus.

OpenBSD is a BSD variant with a strong emphasis on security.

Philosophy

The OpenBSD project emphasizes security and has long been a proponent of cryptography. OpenSSH, the most common implementation of SSH, is produced by the OpenBSD project.

Other goals of the OpenBSD project include freeness, transparency (all development work is public), and standard compliance.

Releases

OpenBSD releases a new version approximately every six months.

Documentation

Common tasks

  • Install a package: pkg_add (requires PKG_PATH to be set)
497 questions
91
votes
1 answer

Redirect both stderr and stdout to /dev/null with /bin/sh

I have tried all sorts of ways to redirect both stdout and stderr to /dev/null without any success. I have almost my entire life run bash which I've never had this issue with, but for once in BSD I'm stuck with /bin/sh. What I've tried: if ls…
Torxed
  • 3,567
  • 7
  • 27
  • 44
26
votes
9 answers

How to apply updates on OpenBSD, NetBSD, and FreeBSD?

I'm using OpenBSD for quite a while now. All I do, however is go from one release to the next, always just doing an update. I configured the system so it works as my router and firewall, and it works quite well like that. But I never update…
polemon
  • 11,133
  • 11
  • 69
  • 111
23
votes
3 answers

What is OpenBSD's pledge in short?

Can someone please describe, for a non-programmer, but IT person, what is pledge? Ex.: there is a program, ex.: "xterm". How can pledge make it more secure? It pledge inside the programs code, or outside in the OS itself? Where is pledge? Is it in…
Peter
  • 521
  • 10
  • 21
20
votes
6 answers

Prevent a USB external hard drive from sleeping

Does anyone know if there is an elegant way to tell an external usb drive not to spin down after a period of inactivity? I've seen cron based solutions that write a file every minute, but nothing that smells of nice unixey elegance. There must be…
gabe.
  • 11,644
  • 11
  • 44
  • 58
19
votes
3 answers

How should one set up full-disk encryption on OpenBSD?

Is there a preferred method to set up full-disk encryption under OpenBSD, similar to dm-crypt under Linux? I'm looking for full-disk encryption, as if someone were to steal my notebook they could potentially access the data stored on it. Another…
LanceBaynes
  • 39,295
  • 97
  • 250
  • 349
17
votes
4 answers

How do I send a shutdown event to a QEMU guest (OpenBSD)?

I'm using virtualisation solely to install OpenBSD onto the bare hardware, and during the installation, the redirection to the serial port didn't get configured, so, I ended up with the system running, but no way to login and do a clean…
cnst
  • 3,223
  • 2
  • 23
  • 44
13
votes
2 answers

OpenBSD: How to follow -current?

This question is similar to this one, but more specific. I have a -stable OpenBSD machine and I want to start following -current. I know about the upgrade procedure from one release to another. How can I go from a release to the latest snapshot? I…
Gradient
  • 3,579
  • 10
  • 31
  • 37
13
votes
3 answers

How to block abusive IP addresses with pf in OpenBSD?

We can see from the nginx logs that there is an IP address doing nasty things. How can we block it with a pf command and then later permanently with the /etc/pf.log? How can we block a x.x.x.x/24 for that IP? It is example: 1.2.3.4 UPDATE: no,…
somelooser28533
  • 965
  • 3
  • 9
  • 23
12
votes
4 answers

Unix on a DEC VAX?

I just picked up a DEC VaxStation 4000 model 90 with a built in CDROM and an auxiliary SCSI storage module with tape archive drive. I believe it is functional although I cannot test it yet since I still do not have a working terminal or monitor. I…
haziz
  • 2,231
  • 4
  • 26
  • 37
12
votes
2 answers

Behaviour of "eval" under "set -e" in conditional expression

Consider the commands eval false || echo ok echo also ok Ordinarily, we'd expect this to execute the false utility and, since the exit status is non-zero, to then execute echo ok and echo also ok. In all the POSIX-like shells I use (ksh93, zsh,…
Kusalananda
  • 320,670
  • 36
  • 633
  • 936
12
votes
4 answers

nginx: Long filenames in directory listing

Using nginx/1.4.1 with OpenBSD 5.4, 64bit: How could we set nginx to show the full filename (or at least show more from the filename then the default) when using directory listing? Googling around only gave me this:…
evachristine
  • 2,603
  • 10
  • 39
  • 55
11
votes
2 answers

Google Chrome on OpenBSD

How can I install Google Chrome on OpenBSD?
LanceBaynes
  • 39,295
  • 97
  • 250
  • 349
11
votes
1 answer

How to mitigate Spectre and Meltdown kernel memory leaking CPU bug on OpenBSD?

Kernel-memory-leaking Intel processor design flaw forces Linux, Windows redesign and Reading privileged memory with a side-channel In recent news people could read about a kernel memory leaking CPU bug. If using OpenBSD, how can we defend…
whoonetets
  • 135
  • 2
  • 11
11
votes
1 answer

What is "Charlie &" in the gecos field on OpenBSD for root?

Question: what is "Charlie &" for the root user? I didn't gave "Charlie &" for gecos field, I think I didn't gave any at all. ps.: the "/sbin/nologin" doesn't matters, I just tested something
gasko peter
  • 5,434
  • 22
  • 83
  • 145
10
votes
2 answers

How to edit a .gpg file with vi?

So I created a gpg encrypted file with password: gpg -c passwords.txt.gpg how can I open it with vi, edit it, then close it? (So that no passwords.txt file will be created, the decrypted passwords.txt is only in the memory! - better: after closing…
gasko peter
  • 5,434
  • 22
  • 83
  • 145
1
2 3
33 34