LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-18-2012, 01:09 PM   #1
jsp_1983
LQ Newbie
 
Registered: Dec 2010
Posts: 29

Rep: Reputation: 0
Question 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.
 
Old 12-18-2012, 02:10 PM   #2
archShade
Member
 
Registered: Mar 2006
Location: Delft NL
Distribution: Debian; Slackware; windows 7
Posts: 218

Rep: Reputation: 53
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 $SHELL
I think
Code:
 echo $0
will work as well

I 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.
 
1 members found this post helpful.
Old 12-18-2012, 02:42 PM   #3
jsp_1983
LQ Newbie
 
Registered: Dec 2010
Posts: 29

Original Poster
Rep: Reputation: 0
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.
 
Old 12-18-2012, 05:11 PM   #4
archShade
Member
 
Registered: Mar 2006
Location: Delft NL
Distribution: Debian; Slackware; windows 7
Posts: 218

Rep: Reputation: 53
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?
 
1 members found this post helpful.
Old 12-18-2012, 06:53 PM   #5
jsp_1983
LQ Newbie
 
Registered: Dec 2010
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by archShade View Post
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?
I do it quite often. I normally log in to my server as root (which, I suppose, I shouldn't...), but every user other than root just has normal shell. I don't mind the fix you mention, but I'll see how I can make it permanent. I'm just pleased I've got an explanation as to why I couldn't use the keyboard shortcuts!
 
  


Reply

Tags
command line, keyboard, shortcuts


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard shortcuts not working (Gnome) Blackened Justice Linux - Newbie 6 07-03-2011 01:10 PM
LXer: Bash Shell Keyboard Shortcuts For Linux Users LXer Syndicated Linux News 0 04-01-2007 04:16 PM
Keyboard shortcuts to run commands in GNOME Xzyx987X Ubuntu 5 12-13-2006 03:32 AM
Keyboard Shortcuts are not working anymore!!! ed_po Linux - Newbie 6 06-18-2006 06:48 AM
CLI editor with standard M$ keyboard shortcuts cuboidz Linux - Software 4 11-04-2003 08:45 AM


All times are GMT -5. The time now is 08:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration