Questions tagged [openbsd]
OpenBSD is a BSD variant with a strong security and code correctness focus.
529 questions
4
votes
1
answer
226
views
OpenBSD 7.7 mips64el pre-built packages
I installed OpenBSD 7.7 for the loongson2f.
When I try to run pkg_add, it fails because it is looking for the OpenBSD-7.0-pkg.pub key, which doesn't exist in the system.
I also tried to install some ...
1
vote
0
answers
86
views
Getting Tuxedo laptop fans to work on BSD
This question pertains to Tuxedo laptops (and possibly Clevo, Uniwill, or Tongfang laptops, which Tuxedo systems appear to be based on). Tuxedo provides official support for Windows and Linux, but I'm ...
2
votes
1
answer
81
views
OpenBSD process maps
I am using OpenBSD 7.7.
So I know that procfs is not mounted on /proc, and I need to use sysctl to fetch process maps. But this fails as I am not running as a root user. The secure level is set to 1 ...
0
votes
0
answers
64
views
OpenBSD: group access on NFS share?
I'm exporting a filesystem from Ubuntu 22.04.5 via /etc/exports:
/mnt/exportTest/ 192.168.129.8(rw,async,no_root_squash)
and mount this filesystem on OpenBSD 7.7 in /etc/fstab:
192.168.130.2:/mnt/...
0
votes
2
answers
200
views
Failing to Multiboot OpenBSD - stuck at partitions and Linux GRUB
I am trying my hand at learning multibooting, so far my target PC has Antix-Linux ext4 on one partition, FreeBSD UFS on another, ExFat common data on a 3rd, Target PC has been partitioned with GPARTED ...
0
votes
0
answers
59
views
Cannot access vio0 remotely after changing from autoconf to static IP address
I have a hosted VPS running OpenBSD 7.6. It provides services on the private network (vio1) via requests sent from a reverse proxy on that network. The initial networking configuration was created by ...
1
vote
1
answer
88
views
Is software raid5 created by mdadm in debian compatable with openbsd softraid
I have created software raid5 using mdadm in Debian Linux. Now I want to switch to OpenBSD and interested if I will be able to mount my raid5 under new system?
1
vote
1
answer
118
views
Keyboard encoding during boot via KVM
OpenBSD 7.6 fresh install
Choosing "no" as keyboard encoding during install - working
Keyboard connected via KVM
Reboot -> login prompt
At login prompt; when pressing any key, the system ...
18
votes
2
answers
2k
views
What exactly is a scratch file (starting with #)? Does it still work today?
I've been reading up on some Unix history and got interested into the csh because it's installed by default on OpenBSD.
In the csh manpage it had a reference to "W Joy - An Introduction to the C ...
1
vote
1
answer
685
views
Setting `ulimit -l unlimited` for non-root user
I am playing with llama.cpp on OpenBSD-current. The program has a --mlock flag to force loading the model into physical memory (i.e. disable mmap). However, running as a non-root user gives warning: ...
0
votes
0
answers
120
views
`$SHELL` still points to `/bin/sh` over SSH after `chsh -s $(which fish)`
I am using OpenBSD-current. After doas pkg_add fish, I ran chsh -s $(which fish) to change the default shell of my user qys to fish, and it works:
$ /usr/bin/ssh magicbane
Last login: Wed Aug 21 11:17:...
0
votes
1
answer
356
views
fdisk: /dev/sd1c is not a character device
I hope this message finds you well. I am writing to you because I am attempting to format and partition a drive in OpenBSD but have been met with the following message:
virtual-server# fdisk /dev/sd1c ...
0
votes
1
answer
59
views
Why does FDisk's Editor Close when Running the Command 'a'?
I hope this message finds you well.
I am writing because I ran the following in my OpenBSD device
and am uncertain why it stops running:
virtual-server# fdisk -e sd1
Enter 'help' for information
sd1:...
0
votes
0
answers
79
views
How to mount /dev separatedly in OpenBSD?
All partitions can have: "rw,nodev,nosuid", only exception is the "/dev" directory (that it cannot have "nodev").
Is there a way that i can partition a new OpenBSD ...
0
votes
1
answer
424
views
Why Is OpenBSD History Not Persistent?
I installed OpenBSD and quickly realised that the history is not persistent. I'm guessing this is a security related feature. But I don't know why this is a good idea. Anyone?
0
votes
1
answer
125
views
unable to startx/xinit on additional virtual terminal
I am running OpenBSD on a laptop with X windows starting on f5 vtty via Xenodm login manager.
I am unable to start another session of X from different vtty. xinit or startx fails with
Fatal server ...
0
votes
1
answer
144
views
openbsd: Allow access to a certain interface only to root
I have several interfaces, one of them urndis0 is an external USB modem.
I want that only root could use it (i.e send packages through it), while other users would be unable to do so.
How to do it?
2
votes
1
answer
219
views
How to disable logical processors in OpenBSD?
It is well known that OpenBSD disables hyper-threading by default. However, htop shows 16 CPUs: 8 online and 8 offline, which takes extra space on the screen and is not very informative.
Moreover, ...
0
votes
1
answer
93
views
What is a good way to perform a SHA256d hash (double SHA256) on an OpenBSD fresh install?
What is a good way to perform a SHA256d hash (double SHA256) on the default terminal of an network isolated OpenBSD fresh install?
Here's what I'm doing:
echo test > testfile
cat testfile | openssl ...
4
votes
2
answers
294
views
Is it possible to find out when a user changed their password?
Or to see which user caused the security notice that /etc/spwd.db was changed?
1
vote
1
answer
701
views
Configuring IPv6 ULA addresses in OpenBSD via SLAAC
I would like to have devices on my network autoconfigure ULA addresses in a prefix generated by https://www.unique-local-ipv6.com/ on my network, which is predominantly IPv6-only.
My main router is ...
2
votes
1
answer
2k
views
Understanding the auto-allocated disk layout on OpenBSD
I am attempting to install OpenBSD7.4 on an amd64 arch with a 1TB drive.
The machine will run an X windows system and need plently of room to store files.
I selected "whole disk GPT" at the ...
1
vote
1
answer
195
views
async mount for read-only filesystem?
It seems OpenBSD's /usr/X11R6 is only written when I upgrade the base system (specifically, the X11 sets). For regular use cases, I want to speed up every read of /usr/X11R6. I wanted to mount the ...
1
vote
1
answer
349
views
How to resume after a system crash (panic) in OpenBSD?
A crash of some acpi process causes OpenBSD to enter ddb.
Is it possible to exit ddb and keep the system running after that?
2
votes
1
answer
251
views
How to prevent relayd on OpenBSD from using all memory
I have an OpenBSD "firewall" with relayd, where relayd starts to consume all available memory to the point that the system becomes completely non responsive. This happens when a user starts ...
2
votes
1
answer
432
views
OpenBSD boot hangs after “256 targets”
I'm trying to boot OpenBSD 7.4 on my desktop with ASUS B650E-i motherboard, but after scsibus3 at softraid0: 256 targets, it hangs. Is OpenBSD incompatible with hardware this recent?
1
vote
1
answer
66
views
How many paths can be unveiled by a single process on OpenBSD?
The OpenBSD manual page for unveil mentions this in the errors section
[E2BIG]
The addition of path would exceed the per-process limit for unveiled paths.
Which raises the question, what is the ...
0
votes
1
answer
116
views
ksh88 string substitution in alias | mpv streaming [duplicate]
tl;dr how can I substitute a string (i.e. a youtube/streaming url) in an alias such as alias mpvyt='yt-dlp <URL> -o - | mpv - ' ?
I live in a mezzanine studio using a M1 macbook for a ...
1
vote
0
answers
2k
views
XTLS Xray - connection ends > proxy/vless/inbound: id is not able to use "". Note that the pure TLS proxy has certain TLS in TLS characters
I am trying to setup a XTLS Xray server (Version 1.8.3) on an OpenBSD VPS. I am not using any CA issued certificate, instead one generated with xray tls cert to maintain server's anonymity.
The server ...
1
vote
1
answer
394
views
Compiling GCC failed on Openbsd 7.4 (configure: error: .... libgomp)
I'm yak shaving: to compile gcc (especially with libgccjit for ultimately compiling emacs with native-comp) on openbsd 7.4.
The reason behind is libgccjit isn't available via pkg_add. Thus I'm trying ...
1
vote
1
answer
180
views
The IP address of the server is modified in relation to the client once the VPN connection is established using WireGuard
I've a below wireguard configuration at the server side
[Interface]
ListenPort = 51820
PrivateKey = oPernzzF+Kl499z2TMwemZLUN6/e630Q=
[Peer]
PublicKey = yyhY5Blx+PxCHu/wK7QgiL/veRrXHQ34RmTi//zynVA=
...
1
vote
1
answer
351
views
OpenBSD and Wireguard hub and spoke: spoke to spoke communication
I have successfully set up an OpenBSD system running Wireguard [wg0] which I have designated "the centre" at 192.168.100.1/24. I also have clients successfully running Wireguard, of various ...
3
votes
1
answer
840
views
Is it possible to get a resolution greater than 1920x1200 on openbsd in qemu ( virt-manager)?
How to increase screen resolution in openbsd if it possible? It is necessary to have a resolution such as 2k or 4k.
Tried virtio, qxl there is even smaller than in VGA, checked the maximum resolution ...
0
votes
0
answers
71
views
Is it possible for /etc/skel/.dotfile to have contents changed to match the username?
I want to create a ~/.nanorc file with a default backupdir path for each user:
set backup
set backupdir /var/nanobackup/username
Does this have to be customized after I create a new user or does /etc/...
0
votes
1
answer
471
views
OpenSMTPD: Mails that should be in root user's mbox is in default user's mail box
So I have setup an OpenSMTPD server on my OpenBSD VPS.
I have specified the aliases file path and configured action "local_mail" to forward the mails to specific users based on their ...
1
vote
0
answers
178
views
Vagrant OpenBSD Box not starting up through Libvirt Provider
So I have created a OpenBSD 7.3 VM in libvirt with the following shell command.
virt-install --name openbsd7.3 --os-variant openbsd7.0 \
--virt-type kvm --vcpus 1,maxvcpus=2 --memory 256,maxmemory=...
0
votes
2
answers
3k
views
How can I restart pf in OpenBSD?
I want to restart pf service after some edits in my /etc/pf.conf but
rcctl restart pf
does not work
0
votes
1
answer
444
views
Removing smptd smtpq service in OpenBSD bare installation
In a recent installation of OpenBSD, I noticed that the smtpd daemon is present.
gelima# ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
[...]
root 90899 0.0 0....
1
vote
2
answers
350
views
OpenBSD mail server getting too many hits to non existing emails
Server: OpenBSD 6.6 GENERIC#3
I'm recently working on an OpenBSD mailserver, it daily gets hits to not existing accounts,
May 31 16:00:23 Makmx01 smtpd[57197]: 05844daf9b176227 smtp failed-command ...
5
votes
1
answer
351
views
Is there a *BSD equivalent of MacOS renameatx_np, atomic swap file renaming?
I am looking to create a *BSD compatible C function like the one below:
int
fs_ext__swap (const char *from, const char *to) {
int res = renameatx_np(AT_FDCWD, from, AT_FDCWD, to, RENAME_SWAP);
...
1
vote
1
answer
312
views
OpenBSD: npm install sodium-native, interpret error messages
I am attempting to install sodium native as an npm package on OpenBSD 7.3 amd64.
Aside: As a dependency of Hypercore, Hyperbee and Corestore.
This needs node-gyp.
Following this, I set the C and C++ ...
1
vote
1
answer
3k
views
OpenBSD USB install; how to mount usb and find file sets:
During an OpenBSD install from USB, if one has reached the Pathname to the sets? prompt and the USB stick is not mounted, how does one find the usb device name, mount the usb drive and direct the ...
5
votes
2
answers
930
views
How to pass extra options to OpenBSD's EFI boot loader with systemd-boot?
I have an extra systemd-boot entry for OpenBSD.
$ cat /boot/loader/entries/bsd.conf
title OpenBSD
efi /extra/bootx64.efi
It works and I manage to get into boot shell,
The problem is that by default ...
0
votes
1
answer
670
views
NFS client (ubuntu) froze after a while with openbsd server / FIN_WAIT_2
I have an openbsd server sharing directories through NFS protocol. After I installed a new version of ubuntu on the client, I still mount NFS directories however after a (random) time: nautilus, ls ...
0
votes
2
answers
196
views
Not enough arguments for capability `setaf` in OpenBSD
I want to change the text colour in a shell. I can use tput to get the correct escape codes. For example,
echo "$(tput setaf 5)My text$(tput sgr0)"
outputs My text in a pink-ish tone.
This ...
2
votes
1
answer
654
views
How to install packages in chroot when chroot is launched with doas?
On OpenBSD 7.2 stable, I've setup my chroot using this script:
#!/bin/ksh
dir="/jails/$1"
mkdir -p "$dir"
tar -C "$dir" -xzf /usr/src/base/base72.tgz
tar -C "$dir&...
0
votes
2
answers
1k
views
OpenBSD: how to make backup / snapshot of mounted disk?
I'm planning to launch a server on latest OpenBSD. (Web, cloud and more.)
I have to make regular backups of my ffs2 partitions (e. g. using cron).
But there are no documentation about this, only man ...
1
vote
0
answers
598
views
OpenBSD 7.2 NanoPi R4S sdmmc0: can't enable card
I am facing the following issue with SD card when trying to install OpenBSD 7.2 on Nanopi R4S (Rockchip RK3399 ARM64 SoC). The same problem as previously described on OpenBSD 7.1 here.
sdmmc0: can't ...
0
votes
0
answers
140
views
Using OpenBSD /usr/libexec/auth/login_* from command line or other program
This may be an x-y problem and please feel free to point me in other directions as well.
I'm trying to write a login mechanism to dovecot's passdb, using either a Lua plugin or a CheckPassword program....
1
vote
0
answers
315
views
How to configure OpenBSD for multiple X Window sessions of different users?
I want to configure an OpenBSD (7.2 amd64) system to support multiple users logged in and each having separate X Window sessions, but being able to easily switch whose session is on the terminal.
...