Skip to main content

Questions tagged [doas]

Use this tag with questions regarding the use or configuration of the doas utility, used for executing a command or shell as another user.

0 votes
0 answers
58 views

I'm using doas for privilege escalation together with a command-line program that calls into either sudo or doas (OpenDoas on Linux, this program does not support BSDs) for authentication when it ...
Newbyte's user avatar
  • 1,532
0 votes
0 answers
80 views

My host is on alpine Linux and I'm running a jenkins agent on docker. I need the jenkins agent to be able to run a script when it does a build that changes the ownership of a few directories. Every ...
andcbii's user avatar
0 votes
1 answer
82 views

I have installed a Nix package on my ubuntu os, that depends on doas, and for it to function, it's binary need's to have the suid bit set - and it isn't in the default nix-env installation. On NixOS ...
Stas Badzi's user avatar
0 votes
1 answer
150 views

Is there a common way I can show a banner when a user sudo -s or doas -s on a host? I don't mean ssh/login banner, but starting a root shell via those methods.
gcb's user avatar
  • 953
0 votes
2 answers
209 views

doas is a sudo-like command recently packaged in Debian 12, Ubuntu Jammy (universe) and some other Linux distros. A non sudoers user (doasuser) can be added to /etc/doas.conf to be granted root access....
GAD3R's user avatar
  • 69.9k
0 votes
1 answer
161 views

I wrote a simple playbook, open-links.yml, that is meant to run a script on one of my remote hosts: - name: Run Bash script hosts: myhosts gather_facts: false vars: au: "j" tasks:...
John Smith's user avatar
0 votes
1 answer
1k views

I want to run a command in the background as root. And I have a problem with doas command. With sudo, I can use sudo --background <command>. It will ask for password, then runs in the background....
Livy's user avatar
  • 455
2 votes
1 answer
315 views

This script works when executed with doas ./backup_cron_root.sh #!/usr/bin/bash /usr/bin/crontab -l> "/tmp/cron.$(whoami).$(hostname)" && /bin/date>>"/tmp/cron.$(...
John Smith's user avatar
1 vote
0 answers
119 views

sudo wget -qO- https://go.dev/dl/go1.20.1.linux-amd64.tar.gz|sudo tar -xz works fine. doas wget -qO- https://go.dev/dl/go1.20.1.linux-amd64.tar.gz|doas tar -xz does not work. I get no input, it just ...
John Smith's user avatar
2 votes
1 answer
669 views

On OpenBSD 7.2 stable, I've setup my chroot using this script: #!/bin/ksh dir="/jails/$1" mkdir -p "$dir" tar -C "$dir" -xzf /usr/src/base/base72.tgz tar -C "$dir&...
neezer's user avatar
  • 51
0 votes
0 answers
322 views

I want to configure doas so that it asks for root password, but not for normal user password. How do I do that?
PuuRaidur's user avatar
0 votes
0 answers
872 views

I'm using Debian/GNU/Linux Unstable, and I was trying doas for the first time today, with the following simple config file: $ doas cat /etc/doas.conf permit persist alx as root While it worked for ...
alx - recommends codidact's user avatar
-1 votes
1 answer
2k views

From my limited understanding, the doas utility allows you to run any command as root but, by default, requires you to enter your own password instead of the root user's password. How do I make it ...
NickKeeger's user avatar
-3 votes
2 answers
166 views

This is a question I've pondered for a long time and thought was impossible. Is it possible to prevent administrators of a machine from bypassing the audit capabilities of sudo or doas? For instance, ...
Brian's user avatar
  • 1
0 votes
1 answer
676 views

How may I change my doas prompt? For example, to change sudo prompt you just run export SUDO_PROMPT="Prompt: " Is there an equivalent for doas?
maDeveloper's user avatar

15 30 50 per page