LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   New user customization (http://www.linuxquestions.org/questions/debian-26/new-user-customization-4175430521/)

Caullyn 10-04-2012 12:21 PM

New user customization
 
Hello,

I have created a new debian user using

Code:

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?:
Code:

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

Regards

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!

Thanks!

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.

Thanks!


All times are GMT -5. The time now is 01:36 PM.