Skip to main content

Questions tagged [openbsd]

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

Filter by
Sorted by
Tagged with
9 votes
2 answers
2k views

What does "Do you expect to run the X Windows System?" do when installing OpenBSD?

When installing OpenBSD 5.1, I got the question: Do you expect to run the X Windows System? What change does the installer make to my system if I say "yes"? I know what X Windows is, but I don't ...
gasko peter's user avatar
  • 5,514
94 votes
1 answer
118k views

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 ...
Torxed's user avatar
  • 3,637
19 votes
3 answers
14k views

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 ...
LanceBaynes's user avatar
  • 40.2k
8 votes
2 answers
697 views

Bounds in awk regular expression do not work on OpenBSD

This awk expression prints inet 34.45 as expected on OpenBSD: echo "inet 34.45" | awk '/inet [0-9]+\./ { print }' However, when I replace the + with a bound {1,3}, I am not getting any match: echo "...
Fabian Ritzmann's user avatar
4 votes
4 answers
3k views

How to guarantee the integrity of an OS?

In information security, integrity means that data cannot be modified undetectably. This answer raised my interest, of course, I want to guarantee the integrity of my OS, outlined here. Suppose a ...
user avatar
3 votes
1 answer
2k views

Convert a date to UNIX timestamp on OpenBSD

On OpenBSD 6.3 I can see: foo# date Sun Apr 1 17:00:45 CEST 2018 foo# foo# date -d "Sun Apr 1 17:00:45 CEST 2018" +%s 1522594858 foo# date Sun Apr 1 17:00:59 CEST 2018 foo# that "date" doesn't ...
Hessnov's user avatar
  • 591
3 votes
2 answers
3k views

openbsd installer doesn't recognize disks?

Background: I'm absolutely new to OpenBSD and trying to install OpenBSD 6.5 into Dell G3 3779. At first, the OpenBSD's UEFI bootloader showed that it detected 3 disks, including the bootable USB ...
cul8er's user avatar
  • 339
2 votes
1 answer
788 views

OpenBSD with only a /32 repeatedly deletes its static route to the world

I have OpenBSD 5.9 on a virtual private server. Like other people in these days of No More IPv4 Address Space For You, the machine is allocated only a /32, i.e. a LAN of just a single IPv4 address. ...
JdeBP's user avatar
  • 68.9k
17 votes
4 answers
49k views

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,...
cnst's user avatar
  • 3,283
13 votes
3 answers
30k views

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 ...
somelooser28533's user avatar
11 votes
2 answers
10k views

Google Chrome on OpenBSD

How can I install Google Chrome on OpenBSD?
LanceBaynes's user avatar
  • 40.2k
10 votes
2 answers
9k views

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....
gasko peter's user avatar
  • 5,514
10 votes
1 answer
15k views

Why I can't unpack .tar.bz2 or .tar.xz files?

I'm having a problem unpacking files when I try to build from source on my OpenBSD First I thought it was just corrupted files but after it happened to many different programs and from different ...
Freedo's user avatar
  • 1,255
9 votes
2 answers
2k views

OpenBSD: Defining a new loopback interface

I need one more loopback interface in my OpenBSD 6.1, with the IP address 127.0.0.2. I can create it by hand with the command: ifconfig lo1 127.0.0.2 And to have it at boot time, I just inserted ...
Rui F Ribeiro's user avatar
9 votes
2 answers
28k views

Why is sudo telling me my password is wrong?

I recently installed OpenBSD 4.9 in my computer, so I could learn a little bit about Unix-like operating systems. I added a new user to the system called bruno. Ok. When I use the 'sudo' command, it ...
Bruno Calza's user avatar
9 votes
1 answer
2k views

USB audio only outputs white noise

I am running OpenBSD/i386 5.1 on a 5 year old laptop. The speakers and headphone port work, but the headphone port is a little loose so I am trying to install an external USB sound card (Fiio E17 USB ...
ssh2ksh's user avatar
  • 420
8 votes
2 answers
7k views

Does OpenBSD have a limit to the number of file descriptors?

What's the maximum number of file descriptors that a process can get on OpenBSD successfully? For example, there is an openfiles limit in login.conf(5) in OpenBSD. If I want to have as many file ...
cnst's user avatar
  • 3,283
8 votes
2 answers
6k views

Adding Ctrl-L as "clear" hotkey in OpenBSD's ksh

I've been looking for a way to use Ctrl-L to clear the monitor instead of typing clear in each time. I found nothing except a patch which didn't work for me. How do I add hotkeys/shortcuts to my ...
user avatar
7 votes
2 answers
5k views

Is it possible to store user's crontab in user's git repository on OpenBSD?

On OpenBSD and with OpenBSD's cron and crontab, is it possible to store the crontab(5) of a user in a git repository of the same user? What would be the proper way to accomplish something like this? ...
cnst's user avatar
  • 3,283
7 votes
3 answers
5k views

OpenBSD 6.0 ntpctl says "clocked synced" but is ~26 seconds behind

My OpenBSD host is running NTPD but is 26 seconds slow, despite it saying "clock synced": user@host:~# ntpctl -sa 4/4 peers valid, clock synced, stratum 3 peer wt tl st next poll ...
RobIII's user avatar
  • 217
6 votes
1 answer
4k views

What are the daemon user and group for?

I am configuring a web server on OpenBSD and I can see in /var/www/ that all directories except /var/www/cache/ are root:daemon. I then see that the user for the daemon group is daemon $ grep daemon /...
Paul's user avatar
  • 507
5 votes
1 answer
1k views

Is there a way to tell if a process is chrooted?

I am still new to understanding chroot. Some packages install their own users (_packagedaemon) and create their own directories (/var/package/). However, I cannot tell if the process is configured to ...
Paul's user avatar
  • 507
4 votes
3 answers
2k views

OpenBSD's pf: disable network access for a given user, except for ssh.

If we are using the default firewall for OpenBSD, how can we modify it to disable all the network access for a normal user except for one thing: we want to ssh to the user from random hosts! So ...
user avatar
4 votes
2 answers
10k views

How to enable Broadcom wireless BCM 4313 on OpenBSD?

Is there any hack/tip/trick to make this specific Broadcom Wireless work with OpenBSD? After digging some FreeBSD-wireless threads and OpenBSD-tech/OpenBSD-misc, I noticed that adding the PCI vendor ...
user avatar
4 votes
1 answer
2k views

Does OpenBSD use bcrypt by default?

http://codahale.com/how-to-safely-store-a-password/ with what does OpenBSD store the password by default? They say bcrypt is way more secure then hashing. I googled' it and obsd supports bcrypt, but ...
LanceBaynes's user avatar
  • 40.2k
4 votes
3 answers
2k views

How to follow OpenBSD current?

We want to try out OpenBSD on desktop, but using the -current flavor: https://www.openbsd.org/faq/faq5.html#Flavors -current: The -current branch is where active development work is done. Every six ...
Hessnov's user avatar
  • 591
3 votes
1 answer
1k views

How to create a user with minimalistic permissions on OpenBSD?

I want to run the webbrowser (xxxterm) with a different user (XY) on an OpenBSD Desktop (different user from the one I use daily). I will reach the Browser with ssh -X in the local machine (or are ...
gasko peter's user avatar
  • 5,514
3 votes
1 answer
2k views

How can I capture an OpenBSD install console?

So.. How can I save the text that is based on Q/A's when installing an OpenBSD 5.3? Or I only have the choice to manually type the texts down? or an OCR software using printscreens?
gasko peter's user avatar
  • 5,514
3 votes
0 answers
1k views

How to install OpenBSD 7.1 on NanoPi R4S using SD card as root disk?

I would like to install OpenBSD 7.1 on the NanoPi R4S (Rockchip RK3399 ARM64 SoC). Following the instructions in INSTALL.arm64, I managed to make the NanoPi R4S boot miniroot71.img. I wrote the ...
Harald Hetzner's user avatar
3 votes
1 answer
5k views

Automatic internet connection on startup in OpenBSD?

I just installed the OpenBSD in my computer. I've learned how to connect to my wireless network using the following commands (even though I don't quite know what they mean): ifconfig iwn0 nwid [...
Bruno Calza's user avatar
3 votes
0 answers
2k views

DNS resolution problem with OpenBSD

During boot up, messages flashed on my computer screen, among which are the following: DHCPACK from 192.168.200.1 bound to 192.168.200.12----> renewal in 432600 seconds The contents of my /etc/...
user.stackexchange.253690's user avatar
2 votes
2 answers
1k views

cut now has a line length limitation?

I had a script, with a 25,000 character input that I was using 'cut' on: ...\n" | cut -c -$LENGTH I didn't use it that frequently, but it was working (oh, about a year or two ago). Granted, my ...
user382423's user avatar
2 votes
2 answers
3k views

OpenBSD 6.1 not updating

I am using Openbsd 6.1/amd64 here. Suddenly, I am no longer able to update or install a package. When trying to do a pkg_add vlc I am greeted with the message: https://ftp.OpenBSD.org/pub/...
Rui F Ribeiro's user avatar
2 votes
0 answers
1k views

How do I stop charging the battery way prior to 100% in OpenBSD?

I'm thinking about using a netbook as an OpenBSD server. I'd like it to have UPS -- so the integrated battery is quite useful. However, I'm very familiar with the batteries going dead very quickly ...
cnst's user avatar
  • 3,283
2 votes
1 answer
6k views

How to use /etc/hosts in unbound DNS server?

I followed the https://www.openbsd.org/faq/pf/example1.html to set up an unbound DNS nameserver on a box. Question: how do I configure the unbound DNS server to also use the /etc/hosts file on the ...
wieistthefish's user avatar
2 votes
2 answers
1k views

Names of copied files from USB device to HDD have all become uppercase. How to fix it?

I am currently using OpenBSD 5.5-release. Whenever I copy files or directories from my USB device to the local HDD, the names of the copied files have all become uppercase. What causes it? How do I ...
user66229's user avatar
  • 1,103
1 vote
0 answers
634 views

Unable to surf internet with VPN on OpenBSD

I am using OpenBSD 5.7-amd64 with the latest patches applied. I downloaded and installed OpenVPN (package version: openvpn-2.3.6.tgz) available for OpenBSD 5.7 using the following command: sudo ...
virvegto's user avatar
1 vote
1 answer
374 views

What audited server programs are shipped in a default OpenBSD install?

OpenBSD has a process by which they audit programs by doing a "comprehensive file-by-file analysis of every critical software component". Which OpenBSD programs have been audited? Is there a list? I ...
LanceBaynes's user avatar
  • 40.2k
1 vote
2 answers
5k views

Problem with WPA connection on OpenBSD

I have an OpenBSD 5.3 amd64 installed and Intel WiFi Link 1000 card which works with WEP but I obtain a strange message with WPA keys: # sh /etc/netstart iwn0 iwn0: no link ............. sleeping #...
Xor1922's user avatar
  • 19
0 votes
1 answer
495 views

Remove/Uninstall desktop environment from second user account on OpenBSD

During the installation process of OpenBSD 5.7, I created a user account, user1, belonging to wheel group. Subsequently I installed a desktop environment after logging into my user account. This ...
virvegto's user avatar
0 votes
1 answer
520 views

OpenBSD Unix USB Install, BIOS Recognizes hard drive, but OpenBSD Install does not recognize

I have a Dell Latitude e6400 laptop, that I am trying to install on from a USB drive, the BIOS Recognizes the hard drive and also lists the hard drive size, but during install from USB, OpenBSD is ...
Michael G. Workman's user avatar