SlackBuilds Repository

15.0 > System > opendoas (6.8.2)

This is the "OpenDoas" port of OpenBSD's doas.

The doas utility is a program originally written for OpenBSD that
allows a user to run a command as though they were another user,
typically root. doas acts as an alternative to sudo, with simple
configuration syntax and a smaller code base for ease of security

Please note that running this SlackBuild will install doas with SUID

To get started, write a configuration file at /etc/doas.conf. As an
example, including the line:

permit :wheel as root

will allow all users in the wheel group to act as root with doas.
Consult the doas.conf(5) man page for further details.

The parameter "keepenv" in /etc/doas.conf allows for opening graphical
applications with doas:

permit keepenv gene as root

"exec dbus-launch --exit-with-session" may be required for xinit in
Slackware 14.2. An alternative is to run "export $(dbus-launch)" after
starting the X session. As with su, KDE 4 graphical applications may
fail to open with doas.

Running this SlackBuild without parameters will provide a build of
OpenDoas with shadow support if PAM is not installed, and with PAM
support if PAM is installed. Password persistence is disabled by

To enable timestamp-based password persistence, call the SlackBuild
with PERSIST=yes:

PERSIST=yes ./opendoas.SlackBuild

In addition, ensure that the appropriate user or group line in
/etc/doas.conf includes the "persist" option, as in this example:

permit persist jane as root

Please note that upstream considers timestamp-based password
persistence to be "new and potentially dangerous."

For users with PAM installed, enable shadow authentication instead by
calling the SlackBuild with PAM=no:

PAM=no ./opendoas.SlackBuild

If /etc/pam.d/other and /etc/pam.d/system-auth are unmodified from the
state in which they are shipped in -current, doas will run with PAM
support if so compiled. Otherwise, doas may require a dedicated file at
/etc/pam.d/doas to use PAM authentication.

To allow OpenDoas to write a new PAM configuration file for doas, call
the SlackBuild with PAM_FILE=yes:

PAM_FILE=yes ./opendoas.SlackBuild

Upstream is unlikely to include PAM configuration files in releases of
OpenDoas beyond 6.8.2.

opendoas has no outside dependencies on Slackware 14.2 or 15.0 and
adds no users or groups. opendoas conflicts with all other ports of

Maintained by: K. Eugene Carlson
Keywords: doas,opendoas,security,persistence,pam,shadow
ChangeLog: opendoas


Source Downloads:
OpenDoas-6.8.2.tar.gz (f31c3ae51307f28df45d4e3445842560)

Download SlackBuild:
opendoas.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Individual Files:

Validated for Slackware 15.0

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2023 Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds