Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Apr 11, 2012 10:05 am 
Offline
Newbie

Joined: Wed Apr 11, 2012 9:42 am
Posts: 2
When logged in as root to a fresh Ubuntu 10.04 distro, tab completion works as expected. Upon creating a new user with:

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

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


Top
   
PostPosted: Wed Apr 11, 2012 2:43 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
jjwebster wrote:
Code:
useradd -m name


Try also using

-s /bin/bash

with that command - that might work.

James


Top
   
PostPosted: Wed Apr 11, 2012 3:32 pm 
Offline
Newbie

Joined: Wed Apr 11, 2012 9:42 am
Posts: 2
zunzun wrote:
[
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!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group