S C M Guru LLC

Technology consulting, training and information security research.

Email: scott@scm.guru

OpenBSD Group Management

The command to perform tasks on a users account is user. As a super user, add a user to a group by doing: user mod -G group user, where group is the group to add a user to, and user is the user to add to this group.

Booting OpenBSD with O.F.
  1. Enter Open Firmware by booting the Apple PowerPC while pressing the: Option, Command, O, and F keys together.
  2. Set the boot device and kernel: setenv boot-device hd:,ofwboot /bsd.
  3. Set automatic booting: setenv auto-boot? true.
  4. Write changes to NVRAM and reboot: reset-all.
Upgrading OpenBSD to Stable
Prepare the Environment

As root, do these steps.

  1. Add a user to the wsrc group by doing: user mod -G wsrc user, where user is the user to add to the wsrc group.
  2. Change to the user directory: cd /usr.
  3. Change the group on the source directory to wsrc: chgrp wsrc src.
  4. Change the permissions on the source directory to 0775: chmod 0775 src.
  5. Make the ports directory: mkdir ports.
  6. Change the ports directory group to wsrc: chgrp wsrc ports.
  7. Change the permissions on the ports directory to 0775: chmod 0775 ports.
  8. Make the xenocara directory: mkdir xenocara.
  9. Change the xenocara directory group to wsrc: chgrp wsrc xenocara.
  10. Change the permissions on the xenocara directory to 0775: chmod 0775 xenocara.
Download the Source Code

As the user that was added to the wsrc group (not root) download the base system, xenocara and ports. Where, host is the closest host to your physical location e.g. anoncvs4.usa.openbsd.org; and the release_number is the release of OpenBSD that you have installed e.g. 6_8.

  1. Change to the user directory: cd /usr.
  2. Download a copy of the base system: cvs -q -d anoncvs@host:/cvs checkout -r OPENBSD_release_number -P src.
  3. Download a copy of the xenocara: cvs -q -d anoncvs@host:/cvs checkout -r OPENBSD_release_number -P xenocara.
  4. Download a copy of the ports: cvs -q -d anoncvs@host:/cvs checkout -r OPENBSD_release_number -P ports.
Build the Generic Kernel
  1. Change to the system, architecture directory, where the generic kernel configuration file is: cd /sys/arch/$(machine)/compile/GENERIC.MP.
  2. make obj.
  3. make config.
  4. make.
  5. make install.
  6. make clean.
Build the Base System
  1. cd /usr/src.
  2. make obj.
  3. make build.
Merge Changes and Make Devices
  1. sysmerge.
  2. cd /dev.
  3. ./MAKEDEV all.
Reboot the Computer

As a super user: reboot.

Updating Stable on OpenBSD

As a user that is part of the wsrc group (not root) do these steps.

  1. Change the directory to user, source: cd /usr/src.
  2. Download a copy of the base system: cvs -q up -P -d -r OPENBSD_release_number.
  3. Change the directory to user, xenocara: cd /usr/xenocara.
  4. Download a copy of the xenocara: cvs -q up -P -d -r OPENBSD_release_number.
  5. Change the directory to user, ports: cd /usr/ports.
  6. Download a copy of the ports: cvs -q up -P -d -r OPENBSD_release_number.
  7. Rebuild from the downloaded source code.