View Single Post
  #3   (View Single Post)  
Old 7th July 2018
therue therue is offline
Port Guard
 
Join Date: Feb 2018
Posts: 21
Default

[just setting up openbsd on laptop for personal use]

i'm booted into the system after the installation and logged in as the user i created (which already belongs to the wheel group).

I'm trying to setup a few things like changing hostname, wifi, but how exactly do i sudo and gain root privilege ?

It seems sudo is not installed by default, so there's su and doas available, but what exactly are the differences between the two and when should one use one over the other?

Also, how exactly do i use them? in archlinux i would just do sudo <.....> like sudo pacman -Syu, sudo vi /etc/hosts. I know I can just su and it'll ask me for the password, etc. but how do i su and run the command in one line? what option should i use exactly? Can someone give me an example? I'm pretty new to nix in general.

Lastly, it seems that doas requires the creation of doas.conf and some editing? Should i just su for now?
Reply With Quote