1

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 freezes on me. I'm able to run other, simpler, commands with doas.

I'm on Ubuntu 22.04 LTS (I installed doas with apt install doas) and my /etc/doas.conf is permit jim as root.

Why doesn't the command with doas work as with sudo? Do I need to further configure doas for the command to work?

4
  • 1
    This seems to be a known issue in the Linux port of doas - see password is read from stdin, not TTY Commented Feb 16, 2023 at 12:26
  • 3
    I don't think the first half of the pipe needs doas or sudo.
    – user10489
    Commented Feb 16, 2023 at 12:27
  • 1
    Is the password persisted for a short while with your doas configuration, or does it ask for a password every single time no matter how recently you last authenticated?
    – Kusalananda
    Commented Feb 16, 2023 at 15:17
  • @Kusalananda I does not persist, it asks me every single time.
    – John Smith
    Commented Feb 16, 2023 at 16:49

0

You must log in to answer this question.

Browse other questions tagged .