doas
I was unable to find sudo
in the target system, but I was able to find doas
much like sudo
, doas is a very similar administrative command line tool to perform something as another user.
Unlike sudo
being present in the most other Unix-like operating systems, the BSD community seems to prefer doas
doas
has gained popularity over the years due to its simplicity, security, and easy-to-use configuration.
$ find / -name doas.conf -ls -type f 2>/dev/null
1695823 4 -rw-r--r-- 1 root wheel 26 Sep 16 2020 /usr/pkg/etc/doas.conf
The configuration file is located at /usr/pkg/etc/doas.conf
$ cat /usr/pkg/etc/doas.conf
permit r.michaels as root
Reading the configuration file reveals that the r.michaels
user is as privileged as the root
user