Hacking shell ioctl workaround

Last Modified: Fri, 25 Mar 2022 02:18:59 +0000 ; Created: Fri, 25 Mar 2022 02:18:59 +0000

You get a shell but not a proper terminal which causes things like sudo, ssh, su to not work right with password prompts. There are multiple ways to work around this, but these are two handy ones.

ttyname failed: Inappropriate ioctl for device

/bin/bash -l

script /dev/null -c bash