Ubuntu 10.04 - tab completion broken on non-root accounts?

When logged in as root to a fresh Ubuntu 10.04 distro, tab completion works as expected. Upon creating a new user with:

useradd -m name

… tab completion does not work for that account. Hitting tab gives whitespace. In addition, the prompt for the new account is different, despite having a virtually identical .bashrc as root.

diff /root/.bashrc /home/name/.bashrc gives:

97,99c97,99
< #if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
< #    . /etc/bash_completion
< #fi
---
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
   . /etc/bash_completion
fi

The /bash/completion if block is actually UNCOMMENTED in the user .bashrc, not the other way around. I tried commenting out to see if that made a difference and it did not.

Something doesn't seem right. I also tried installing the bash_completion package to no avail.

Any tips?

2 Replies

@jjwebster:

useradd -m name

Try also using

-s /bin/bash

with that command - that might work.

James

@zunzun:

[

Try also using

-s /bin/bash

with that command - that might work.

James

You da man. As soon as I saw your reply, I realized "chsh" to /bin/bash. All is well. Thanks!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct