Blog / #sudo
Tagged "sudo"
Enabling Claude Code to Use sudo on Ubuntu (fixing 'a terminal is required')
Claude Code
Ubuntu
Linux
sudo
The Claude Code CLI hits 'sudo: a terminal is required' when running root commands like apt or systemctl. Solving it safely without NOPASSWD, using timestamp_timeout + !tty_tickets.
Read more