By marc485958
Hello.
When I connect to my root account on DigitalOcean with ssh, everything goes super: I got a colored prompt, up-arrow for history, auto-completion, the works. I created a new user with useradd -d /home/myuser, and when I login with that user, I have nothing of the kind: the shell works but my up-arrow does ^[[A, I have no no color and no auto-completion.
My local .bashrc is similar to the root account’s .bashrc but was created automatically (it also created .bash_logout, .cache, .profile, .viminfo).
How can I create decent behaviors for my user accounts ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Edit /etc/passwd and change the line that has your account name from /bin/sh to /bin/bash.
When creating new users those “skeleton” files are copied over from <pre>/etc/skel/</pre> If you would like to give it a try you can copy the skeleton files from root account over to the new user. If you would like these to be applied to new users you can copy them from root to <pre>/etc/skel/</pre>. Just do a backup of the files first not to overwrite them.
What @Tyler suggest is correct I overlooked when you mentioned up arrow gives you the characters.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.