![]() |
CLI keyboard shortcuts/ commands not working for non-Root users
When I switch user from Root to someone else, I'm unable to use keyboard shortcuts, like tab for completing file and directory names, or the up arrow for previously used commands.
How can I enable them for non-Root users? I'm using Ubuntu 11.10. |
My guess is that when you su your shell changes to plain ol' sh. Easy way to check is to check is to call
Code:
echo $SHELLCode:
echo $0I don't know a perminent fix (google might) but just running your favorite shell (Ubuntu defualts to dash) after you su may help. Anyway HTH. |
Ahhh, that makes a lot of sense - thanks!
Turns out it's just running 'sh' rather than 'bash', so I need to find a way of changing the shell, as you suggest. That sounds like it should be relatively easy to fix. |
Like I said I am not sure there is an easy way to do this (well without changing the users shell).
How often do you have to su to another user if its once in a blue-moon then it will probably easier just to type bash/dash/ksh/tcsh/csh after you su. The problem here is that you have to type exit twice to leave the su function. Like I said it's not a major issue if you do not do it a lot if your doing it several time a day could get frustrating depends how much you enjoy typing? |
Quote:
|
| All times are GMT -5. The time now is 05:00 AM. |