Debian ssh user TAB behaviour changed - how to revert it?

0

I have created new user with:

useradd u 
passwd u

When logged as u via PuTTy the TAB key behaviour is changed:

  • autofill dir/filenames and commands not working
  • the tab is placed instaed (4 spaces)
  • When moving coursor with ARROW LEFT it writes ^[[D

Also noticed other keys behave different:

  • END and HOME buttons go to start/end of line ARROW

And other just fine:

  • UP, ARROW DOWN normally scroll thru history

I dont mind END and HOME, but TAB needs to be autofill instaed of 4 spaces. Wierd is that all my previous machines behaved normally. This one is a dedicated server from new provider with Linux Debian Wheezy provided.

PS root user's TAB works fine :)

Szymon Toda

Posted 2013-10-07T16:22:59.977

Reputation: 1 239

Have you checked your .bashrc? – DanteTheEgregore – 2013-10-07T16:37:54.830

It's all comments for root user, where faulty user u has no such file as ~/.bashrc. In fact had to manually create ~ for new user – Szymon Toda – 2013-10-07T16:41:35.607

Answers

0

Found answer @ https://serverfault.com/questions/399852/bash-tab-completion-only-works-for-root

My user had :/bin/sh setting, while root was :/bin/bash - chanded sh to bash :-)

Szymon Toda

Posted 2013-10-07T16:22:59.977

Reputation: 1 239