i created a new user with
and set a passwd for him.sudo useradd -d /home/new -m new
PROBLEM: when i log as user "new", my terminal has neither tab-completion nor arrow-key history.
how do i fix this?
i created a new user with
and set a passwd for him.sudo useradd -d /home/new -m new
PROBLEM: when i log as user "new", my terminal has neither tab-completion nor arrow-key history.
how do i fix this?
There are other commands that are needed on command line to create users than just useradd command, and passwd commands.
that may be the problem there.
suggest that you log out of new, go to your account, and check new's user settings through GUI, change, add anything that is needed, see if that fixes the problem, if not, remove user, and re-add, suggest using the GUI, it is easier than using command prompt
if you would still like using command prompt, you may want to study up on every user command used in the creation of accounts. Including setting permissions.
SOLVED but in a different (and better?) way.
my first guess was that there is a problem with $TERM, but both old and new user had it set to "xterm".
so i dug deeper and actually compared all the other environmental variables for the old and new users.
it turned out that the WINDOWPATH was 7 instead of 7:7, DISPLAY was 0 instead of 0:0, SHELL was /bin/sh instead of /bin/bash, and the new user did not have the variables HISTCONTROL, SHLVL, LESSCLOSE, LESSOPEN, COLORTERM, DBUS_something and LS_COLOR_something. plus there was some difference in the XAuthority variable.
Fortunately, just changing the shell variable to bash automatically fixed the other variables and created the missing ones!
hence, the solution is (in the new user's terminal):
finally, if someone can explain the meaning of some of these env variables, i'd be really gladCode:SHELL=/bin/bash env $SHELL
Thanx man, that worked for me like a charm
Thanks a lot. It only works for that session. How to set it permanently
Last edited by chiragjain; March 21st, 2012 at 09:32 AM.
Put the below line in your ~/.bashrc file to amke the change permanently .
if ~/.bashrc does not exist , you need to create one .Code:export SHELL=/bin/bash
“Progress is made by lazy men looking for easier ways to do things”
— Robert A. Heinlein
Bookmarks