Linux – su- no password entry for user? installing powerline with pip

linuxpasswordspipsudo

I am trying to install Powerline using pip to do the installation. I'm installing in to /usr/local/lib/python2.7/dist-packages/powerline using the su -c "pip install github******" and get the response no password entry for user. Can someone explain?
as a side note, having spent a few hours now messing about with Powerline installation, Vim,bash,tmux does anyone have any straight forward install tips.

Best Answer

Ubuntu by default has no password for root. There are some perfectly reasonable security reasons behind this practice, see, for example this.

Instead of su(1) use sudo(1). In your case it might be good idea to get an interactive root-shell with sudo -i first and then continue with whatever you are doing with pip.

Related Question