Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146736739
D28483.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D28483.diff
View Options
diff --git a/documentation/content/en/books/handbook/security/_index.adoc b/documentation/content/en/books/handbook/security/_index.adoc
--- a/documentation/content/en/books/handbook/security/_index.adoc
+++ b/documentation/content/en/books/handbook/security/_index.adoc
@@ -2125,3 +2125,26 @@
====
The `sudoreplay` is extremely extendable. Consult the documentation for more information.
+
+[[security-doas]]
+As an alternative to package:security/sudo[] package:security/doas[] can be used to provide the ability for users to get enhanced privileges.
+
+The doas utility is available via the ports collection in package:security/doas[] or via the man:pkg[8] utility.
+
+After the installation [.filename]#/usr/local/etc/doas.conf# must be configured to grant access for users for specific commands, or roles.
+
+The simpliest entry could be the following, which grants local_user root permissions without asking for its password when executing the doas command.
+
+[source,bash]
+....
+permit nopass local_user as root
+....
+
+For more configuration examples, please read man:doas.conf[5].
+
+After the installation and configuration of the `doas` utility, a command can now be executed with enhanced privileges, like for example.
+
+[source,bash]
+....
+$ doas vi /etc/rc.conf
+....
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 6, 4:02 AM (1 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29311767
Default Alt Text
D28483.diff (1 KB)
Attached To
Mode
D28483: Handbook: Add a small chapter about doas as an alternative to sudo
Attached
Detach File
Event Timeline
Log In to Comment