The shell obtained with nc is basic. It is not a tty (real terminal). Some commands like su will refuse to work. To upgrade our shell, use python to get a tty shell:
python -c 'import pty; pty.spawn("/bin/bash")'