Getting around “su : must be run from a terminal”

  1. su : must be run from a terminal

After some googling, I found the solution . If you have python installed, just run the following from your shell:

  1. echo “import pty; pty.spawn(‘/bin/bash’)” > /tmp/asdf.py
  2. python /tmp/asdf.py

You now have a proper terminal, and things like ‘su’ will work as usual.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s