@@ -26,23 +26,44 @@ $ chsh -s <shell> <user_name>
26
26
` <shell> ` must be the path to the shell as specified by ` /etc/shells ` or the
27
27
output of ` chsh -l ` , which provides a list of installed shells.
28
28
29
- ## sudo
29
+ ## Superuser Access
30
30
31
- [ sudo(8) ] ( https://man.voidlinux.org/sudo.8 ) is installed by default, but might
32
- not be configured appropriately for your needs. It is only necessary to
33
- configure sudo if you wish to use it .
31
+ By default, Void includes the [ ` su(1) ` ] ( https://man.voidlinux.org/man1/su.1 )
32
+ privilege escalation tool. Users may wish to install and configure a more
33
+ featureful alternative .
34
34
35
- Use [ visudo(8)] ( https://man.voidlinux.org/visudo.8 ) as root to edit the
36
- [ sudoers(5)] ( https://man.voidlinux.org/sudoers.5 ) file.
35
+ ### sudo
37
36
38
- To create a superuser, uncomment the line
37
+ [ sudo(8)] ( https://man.voidlinux.org/sudo.8 ) is commonly used, and is highly
38
+ complex. The default configuration only allows the ` root ` user to run privileged
39
+ commands.
40
+
41
+ To configure sudo, use [ visudo(8)] ( https://man.voidlinux.org/visudo.8 ) as root
42
+ to edit the [ sudoers(5)] ( https://man.voidlinux.org/sudoers.5 ) file.
43
+
44
+ To create a superuser, uncomment the line:
39
45
40
46
```
41
- #%wheel ALL=(ALL) ALL
47
+ # %wheel ALL=(ALL) ALL
42
48
```
43
49
44
50
and add users to the ` wheel ` group.
45
51
52
+ ### opendoas
53
+
54
+ [ doas(1)] ( https://man.voidlinux.org/man1/doas.1 ) is an alternative privilege
55
+ escalation tool, developed for OpenBSD and ported to Linux.
56
+
57
+ To configure basic superuser access, create ` /etc/doas.conf ` as root with the
58
+ contents:
59
+
60
+ ```
61
+ permit :wheel
62
+ ```
63
+
64
+ and add users to the ` wheel ` group. For more complex configuration, see
65
+ [ doas.conf(5)] ( https://man.voidlinux.org/man5/doas.conf.5 ) .
66
+
46
67
## Default Groups
47
68
48
69
Void Linux defines a number of groups by default.
0 commit comments