r/openbsd • • Jul 06 '26

An OpenBSD friendly AI agent written in POSIX sh

0 Upvotes

If you enjoy OpenBSD you might like the AI agent I was inspired to make over the last week. Unlike other AI agents, there is a clear mechanism for how to apply pledge() and unveil() sandboxing to scripts the AI model wants to run. The code that queries the AI model runs in a different process than the code that runs the scripts the AI model returns. Both can be scripts or binaries you write yourself and set via environment variables or cli args. So, for example, the process that queries the AI model could have network access while the scripts the model wants to run could not. Written in 1,000 lines of POSIX sh.

https://github.com/patrickjh/ssa


r/openbsd • • May 08 '24

Why do you think no one has created a desktop OS based on openbsd? Like there is GhostBSD which is based on FreeBSD?

0 Upvotes

GhostBSD as you know is based on FreeBSD. It offers a graphical installer, a graphical network manager, a graphical package manager and also a graphical update manager. In short it offers almost all you need in a desktop OS.

Why do you think no one has created a desktop OS based on openbsd? Like there is GhostBSD which is based on FreeBSD? It it too difficult to build? Or there is no demand for such a project?


r/openbsd • • Jun 01 '20

I am getting serious about hacking OpenBSD now.

Post image
1 Upvotes

r/openbsd • • Aug 08 '21

flamewar Why doesn't OpenBSD release updates for packages like Firefox ?

0 Upvotes

I had used OpenBSD for a brief period some years back. One thing that I still remember is the fact that after installing & during the 5-6 months that I was using it I didn't get a single update for the packages I installed. Firefox is an example. I used to run syspatch regularly & that pulled in some updates. So my question is how can someone consider an OS secure where only the base is receiving patches & critical apps like web browser which is the most internet exposed app is not receiving any updates at all ? I remember I used the command # pkg_add -uvi many times but never received any updates.

I am planning to try OpenBSD once more but I am eager to know the reason behind this policy.


r/openbsd • • Sep 09 '23

user advocacy Random Puffy (OpenBSD art)

1 Upvotes

- Linux Sucks - How'd It Get So Popular: https://i.imgur.com/5V1P2ka.mp4

- OpenBSD vs Docker and Linux: A More Secure and Simpler Pathway for Web Development: https://medium.com/@brucedandbattered/openbsd-vs-docker-and-linux-deploying-ruby-on-rails-in-production-320c90bcb934

So there you have it!

Want more? Join us on OpenBSD Fans @ TikTok


r/openbsd • • Mar 03 '15

The Security of OpenBSD: Milk or Wine? (2006)

Thumbnail
usenix.org
0 Upvotes

r/openbsd • • Mar 27 '20

Why would you want to use OpenBSD on a desktop?

2 Upvotes

First: I'm not trying to insult anyone, I'm just curious. I don't want to start a religious discussion either. A laptop/desktop is an instrument to me, a tool. It must do what it's meant to do without any problems, tinkering, programming; without whatever costs me time. When I read all the comments in some posts about the fiddling to get things up and running, I'm curious why anyone would want OpenBSD as a desktop OS. It is so much easier to use Linux (Ubuntu, Fedora, Arch, you name it) where all the problems already have been solved. I'm a big fan of OpenBSD as a firewall; there is none better suited for that. But for a desktop........ When I have a look at what I've installed: LibreOffice, Firefox, Thunderbird, TeamDrive, VeraCrypt, Keepass, Chrome, TOR, The Gimp, Spotnet, Newsleecher, HTTrack, VNC, VLC, Windscribe, DoubleCommander; how long would it take me to get all of them running on OpenBSD?! So, I'm curious why anyone would want that?


r/openbsd • • Apr 28 '21

I made GhostBSD on top of OpenBSD

8 Upvotes

r/openbsd • • Aug 01 '18

Creating a jail/sandbox in OpenBSD using simple UNIX administration

0 Upvotes

Hello world. I was playing around with the idea of a secure "jail" environment, and I think I came up with a basic solution that requires little effort to setup. Feel free to critique this is only a test concept. These instructions are going to assume you are using i3wm, so tweak to fit your wm of choice or base cwm, fvwm. I use i3 because it's easy and idiot-proof.

So basically you log into #

# useradd -m jail1
# passwd jail1

Create a strong password https://www.youtube.com/watch?v=7U-RbOKanYs

Log into jail1.

$ echo "exec i3" >> .xinitrc
$ cd ..
$ chmod -R 700 jail1/
$ startx

Now the user jail1 has no doas access and belongs to no additional groups. No outside users can look at jail1's home directory. I have also used chmod 700 on all other home directories, so nobody can see each other's stuff. I assume also that processes by other users cannot be seen, but I haven't tested that yet to be sure. For use of doas; I can type Ctrl+Alt+F2, then login as my regular user to use tmux for any priviledged terminal needs, then Ctrl+Alt+F5 to switch back to my unprivileged environment.

The i3 config is very basic and just autoloads xcompmgr (a base composition manager), terminal is base xterm, and the web browser iridium http://openports.se/www/iridium which is an "ungoogled" chromium build well known to be a privsep oriented browser. https://marc.info/?l=openbsd-misc&m=152872551609819&w=2

i3 config - https://pastebin.com/2TN3D3cK

Now I can use iridium to browse with no possible root access, since even an open terminal cannot use doas or sudo. For extra protection I employ ublock origin for adblocking, dj noscript for script blocking, and an user-agent spoofer that tells websites I'm a mac or ubuntu browser. Of course avoiding google, facebook, and browsing only trusted sites. So it's not anything state-of-art or high tech, but it's a couple more stopgaps to use. I know I can remove the "persist" argument from /etc/doas.conf in case an attacker were able to use a browser bug to access tty2 and the other user (would that require cracking my other users password?). However persist is a nice feature especially when your password is long and easy to mistype. Well that's all, cheers.

/etc/doas.conf

permit persist keepenv reguser as root
permit nopass keepenv reguser as root cmd reboot

as you can see user jail1 is not even part of the equation.

*edit users can see each other's processes, can this be disabled?

*edit2 This whole concept revolves around the idea that although the OpenBSD kernel is hardened and secure, the security of the web browser is probably never going to be perfect or unbreakable, therefore running a web browser in a completely unprivileged environment is ideal.


r/openbsd • • Oct 21 '16

Netcraft confirms it - BSD is dying

0 Upvotes

r/openbsd • • Sep 03 '24

Why not disable the shell?

0 Upvotes

I've been reading about OpenBSD and security, and am thinking of switching to using OpenBSD. I have what might be a dumb question.

It seems like most of the exploits that affect most operating systems use Return Oriented Programming or other techniques to get access to a shell, like /bin/sh. Then they use shell code to do bad things to your system.

I am just wondering, has anybody ever considered just... disabling the shell after init?

Surely once you have all your programs up and running, anything those programs legitimately need to do via the shell those programs could also do via calls to the C standard library. Would be a bit more code, but those C standard library calls could also be secured via pledge() and unveil().

Why not just add a secure level 3 to OpenBSD that marks the shell as non executable? You may have to adjust various programs that use the shell to use some C code instead, but long term it seems like marking the shell non executable after init would eliminate a whole class of vulnerabilities and exploits.

This leads to a model where if you do need the shell, you need to reboot the system and use the shell before raising the secure level. But that doesn't seem like the worst thing ever from a security perspective

This was just a random thought I had while reading, curious to hear if it cannot work and why.


r/openbsd • • Nov 29 '15

OpenBSD 5.8

Thumbnail
openbsd.org
0 Upvotes

r/openbsd • • Jan 26 '20

Insights into Why Hyperbola GNU/Linux is Turning into Hyperbola BSD

Thumbnail
itsfoss.com
1 Upvotes

r/openbsd • • Feb 28 '20

OpenBSD vs. Void Linux?

4 Upvotes

I'm familiar with FreeBSD, ran Arch linux for years and recently started running Void on one of my laptops.. i have another laptop and want to get away from systemd and realize Void is closer to BSD than it is to Arch (at least in the way it feels). If i were to run OpenBSD on that same void machine, could i expect a similar speed? FreeBSD tends to be faster than linux on the hardware I've ran it on, i expect that OpenBSD is just as fast?


r/openbsd • • Oct 02 '25

Interview with Russian OpenBSD user while walking Moscow (russian language, but maybe YT will autotranslate subtitles)

Thumbnail
m.youtube.com
23 Upvotes

r/openbsd • • Nov 12 '22

possible bug with a simple Regular Expression using grep -E

0 Upvotes

So was trying to use grep to find IP addresses having the form nn.nn.nn.nnn (with a leading space), with my OpenBSD box running version 6.6.

command:

cat text.txt | grep -E '\s([0-9]{2}.){3}[0-9]{1,3}'

text file text.txt:

" 12.34.56.255"

OpenBSD wasn't able to find it but my Linode virtual machine running Debian found it.

Does anyone know if this was a known bug with grep and has since been fixed?


r/openbsd • • Apr 11 '23

getting packages in old versions of openbsd

0 Upvotes

How could I install packages for an old version of openbsd, say, 5.0?

Where would I find repos for old versions of openbsd and set them up?

Do not ask me why since redditors only ask that to be condescending and tell you not to do it, I dont have a good reason to do it, and I am doing it anyways


r/openbsd • • Jun 22 '24

What makes openBSD better than Linux?

0 Upvotes

I know it's a dump question somehow, but i just want to know, cause i'm thinking to move to bsd... and try it, but i first have to know what makes it better?


r/openbsd • • Sep 04 '21

Pinephone

0 Upvotes

I was considering buying a pinephone but then read that everything is bloated and broken. Typical for linux. For example you can't even make phone calls reliably.

Now I see OpenBSD supports ARM. I would be really curious how much work would be required to bring OpenBSD support for the pinephone for the level to make calls and send SMS (don't really care about MMS). Camera would be interesting but again don't really care about it. Lynx level web browser would be acceptable. If I want to watch multimedia videos or do online banking I can use a PC.

Anyway I think it would be really cool if the Pinephone had excellent support on openbsd especially for calling and text messages and also browsing the web with lynx and ssh and maybe some CLI gps or navigation app). Basically a smart phone in ncurses menus. What matters to me is that the phone just works and is secure...openbsd philosophy. I am not interested in all the broken bloated dysfunctional linux / electron eye candy. I don't even really care if it can run X although that might be nice if done in a lean way.


r/openbsd • • Jan 17 '23

resolved can't install newest version neovim

0 Upvotes

i am running openbsd 7.2 but no matter what i do I can't install neovim 0.8.2 every time i try it just downloads version 0.7.2 i have even tried compiling it from the ports tree


r/openbsd • • Dec 17 '19

raplacing routers and linxu or windows servers with openbsd box

0 Upvotes

ANyone work at an organization that is doing this? How is it going? Also what about postgresql dataabses? IS performacne good enough to run openbsd accross all servers including database?


r/openbsd • • Apr 08 '23

Any chance to see those basic features?

0 Upvotes

First off, I appreciate all the effort towards polishing OpenBSD. I think OpenBSD ways of doing things is the best out there. Forget the security, and let me appreciate the OS design... Brilliant and up do date man pages, brilliant sndio, sane defaults, completeness, all the things done the right way. But let me complain a little tiny bit...

Audio over HDMI is not supported in 2023. Please, do not recommend me buying an external sound card and speakers as a response to that (better just downvote me). Having found this mailing list, I know OpenBSD does support it. Why is still disabled, what is hard/wrong about it?

Why OpenBSD is still so hostile towards foreign filesystems?

Is there any chance to see these finally fixed? Is it just not enough people/resources?


r/openbsd • • Nov 26 '23

Preach openbsd to me

6 Upvotes

Reddit just recommend me this subreddit, I am curious what kind of introduction I can get from the community.

It can be fun facts. Recommendations. How-tos.

I am curious to see what you have to share ;)


r/openbsd • • Jan 18 '22

2 reasons why couldn't continue with OpenBSD

7 Upvotes

I installed OpenBSD last month. After the installation was finished I successfully installed XFCE and everything was looking good. Then I faced 2 problems :

(1) I have a Firefox profile which I am using for a long time. When I install a new Linux distro I just copy the .mozilla folder to my new /home/username & all passwords, logins, bookmarks, etc are restored. So I did the same thing after installing OpenBSD. I just copied my .mozilla folder to OpenBSD's /home/username but then when I launched Firefox it complained that the installed version of Firefox is too old & the only choice was to create a new profile from scratch. I have used both fixed & rolling releases of various Linux distros & even conservative fixed release distros like Debian releases updates for Firefox. Why don't OpenBSD offer the latest Firefox in the official repos ? I am using Firefox 96.0.1 how do I use my current profile with OpenBSD ?

(2) I have 1 SSD on which I install my OS & 1 spinning HDD which I use to store data. Its in EXT4 format. After some research I found that OpenBSD doesn't support EXT4. This is a big issue for users who are migrating from Linux. FreeBSD these days support EXT4 for this very reason. So is there a workaround for this ?