Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-04-2012, 12:21 PM   #1
LQ Newbie
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
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/
Old 10-04-2012, 02:33 PM   #2
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
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.)
Old 10-04-2012, 02:48 PM   #3
Senior Member
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Have you tried?:
# adduser [username]
It normaly does all you need.

Old 10-04-2012, 03:53 PM   #4
LQ Newbie
Registered: Oct 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.



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
linux customization clarodina Linux - Newbie 5 09-21-2011 01:15 PM
[SOLVED] e-17 customization matiasar Linux - Desktop 4 11-23-2010 06:24 AM
Berly Customization Help soldier228 Linux - Software 8 05-10-2007 08:43 PM
Customization Jmcatch742 Linux - General 7 08-21-2004 09:55 PM
Debain customization. Vipes Debian 3 01-26-2004 10:25 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:29 PM.

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