BSD Ports

security/doas 6.4 FreeBSD

Simple sudo alternative to run commands as another user

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
8b79ada9a6
License
BSD2CLAUSE, ISCL
Categories
security
Package size
24.6 KiB, 44.8 KiB installed

Description

This is the FreeBSD port of the OpenBSD "doas" command. The doas program allows a regular user to run commands as another user (usually root). The doas command is a simplified (hopefully more secure) version of the "sudo" command and offers an easier to read/modify configuration.

In the other systems

SystemPortVersion
FreeBSDsecurity/doas6.4
NetBSDsecurity/doas6.3p2nb2
DragonFlysecurity/doas6.3p12
MidnightBSDsecurity/doas6.3p12

Install

Binary package:

pkg install doas

From the ports tree:

cd /usr/ports/security/doas/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	doas>0:security/doas

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest6.46.46.3p96.3p126.4
FreeBSD:14:quarterly6.46.4n/a6.3p126.4
FreeBSD:15:latest6.46.4n/a6.3p126.3p12
FreeBSD:15:quarterly6.46.4n/an/an/a
FreeBSD:16:latest6.46.4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 3
Required by 1

Configuration

No options to configure.

USES
cpe gmake
Service scripts
none
Conflicts with
opendoas

Message after installing

To use doas,

/usr/local/etc/doas.conf

must be created. Refer to doas.conf(5) for further details and/or follow
/usr/local/etc/doas.conf.sample as an example.

Note: In order to be able to run most desktop (GUI) applications, the user
needs to have the keepenv keyword specified. If keepenv is not specified then
key elements, like the user's $HOME variable, will be reset and cause the GUI
application to crash.

Users who only need to run command line applications can usually get away
without keepenv.

When in doubt, try to avoid using keepenv as it is less secure to have
environment variables passed to privileged users.

With the 6.1 release the transfer of most environment variables (e.g. USER,
HOME and PATH) from the original user to the target user has changed.

Please refer to doas.conf(5) for further details.

Files

Manual pages 4
  • doas(1)
  • doas.conf(5)
  • doasedit(8)
  • vidoas(8)
pkg-plist 8
  • @(,,4755) bin/doas
  • bin/doasedit
  • bin/vidoas
  • @sample etc/doas.conf.sample
  • share/man/man1/doas.1.gz
  • share/man/man5/doas.conf.5.gz
  • share/man/man8/doasedit.8.gz
  • share/man/man8/vidoas.8.gz
distinfo 1
FileSizeSHA256
doas-6.4.tar.gz34921e88ed42abac267526e1acf0c53881d4d3591c3b7c482eb5064fc88501936ec4d
Master sites 1
  • https://codeberg.org/thejessesmith/doas/archive/6.4${EXTRACT_SUFX}?dummy=/

Commit history 1

DateCommitCreditsLog message
8b79ada9a6 Daniel Engberg */*: Refresh checksums for on the fly archives on codeberg.org
See https://codeberg.org/Codeberg/Community/issues/2861 Approved by: blanket