-   Debian (
-   -   New user customization (

Caullyn 10-04-2012 12:21 PM

New user customization

I have created a new debian user using


useradd -m [username]
When I login to the user, it doesn't have all of the functionality that root, or my postgres user, does. If I press up, it doesn't show me the recent commands, instead I just see '^[[A'.

Also, ctrl+r just prints ' ^R', instead of doing a reverse search.

Also, there is no prefix like 'root@[host] $'

Is there a simple way to have this level of functionality when creating the user? If not, what files do I need to alter to get these working?

If there is a file that I can just copy over from my postgres user, that would be great. I don't see any obvious ones in the home dir. .profile is empty. I tried changing the .bashrc in home/[user] and /etc/skel/

pingu 10-04-2012 02:33 PM

First question: are you logging in with putty from Windows?
Because I've seen the same thing a few times when logging in from something else than Linux terminal.
I *think* - though I can't be sure - that the problem is not related to the Debian system, but to the terminal you use to log in with.
But just to be on the safe side, check users shell:
grep <username> /etc/passwd - what shell does it show you? (The last path in the output.)

ukiuki 10-04-2012 02:48 PM

Have you tried?:

# adduser [username]
It normaly does all you need.


Caullyn 10-04-2012 03:53 PM

In /etc/passwd I switch "bin/sh" to "bin/bash" and now it seems to be the same!


adduser also appeared to set the user up with "bin/bash" in etc/passwd. So, both solutions are great. I will use adduser from now on.


All times are GMT -5. The time now is 08:17 PM.