LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2011, 08:24 AM   #1
ananthkadalur
Member
 
Registered: Mar 2011
Posts: 38

Rep: Reputation: 0
No command completion for new users


Hi..Linux Guru
I am using ubuntu 9.04. I created new users, & users logged in with their name & password. Everything is working fine. But when they open gui terminal or when they login using CLI(using ctrl+alt+f1), they will get only "$" symbol, instead of full path like pwd, hostname, etc. And if I do ls, it is listing the content, but command completion is not happening, i.e $cd Des(pressing tab).
These all things can be fixed only after pressing "bash". So I don't always want to press "bash". So is there any way that I can fix this issue.
I will be waiting for your kind reply guruji.
 
Old 07-18-2011, 08:51 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Are there .bashrc and .bash_history files for the non-working user?

By the way, 9.04 reached end-of-life status October 23, 2010
Code:
Version         Code name            Docs           Release date       End of life date
Ubuntu 9.04     Jaunty Jackalope     Tech / Rel     April 23, 2009     October 23, 2010
You should upgrade to a supported version.

https://wiki.ubuntu.com/Releases

Last edited by andrewthomas; 07-18-2011 at 08:56 AM.
 
Old 07-18-2011, 09:04 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by andrewthomas View Post
Are there .bashrc and .bash_history files for the non-working user?
.bash_history is a typo for .bash_profile? .bash_login, .profile and $BASH_ENV might also be relevant if they exist (no worries if they don't).
 
1 members found this post helpful.
Old 07-19-2011, 02:12 AM   #4
ananthkadalur
Member
 
Registered: Mar 2011
Posts: 38

Original Poster
Rep: Reputation: 0
no command completion for new users

Yes there 3 files for new users those are .bashrc, .bash_history, .bash_logout. although the fullpath, when we open shell & command completions are happening only after typing bash.


Quote:
Originally Posted by catkin View Post
.bash_history is a typo for .bash_profile? .bash_login, .profile and $BASH_ENV might also be relevant if they exist (no worries if they don't).
 
Old 07-19-2011, 08:33 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Which shell do the new users get when they log on? What is their shell in /etc/passwd?
 
1 members found this post helpful.
Old 07-20-2011, 02:33 AM   #6
ananthkadalur
Member
 
Registered: Mar 2011
Posts: 38

Original Poster
Rep: Reputation: 0
No command completion for new users

Thank you guruji
As your guidense I checked login shell for new users, & found /bin/sh, I changed from /bin/sh to /bin/bash
for all new users & tried login with different new users. Now when we open terminal they are getting full path & command completions also are happening
once again thanks for your quick response.

Regards
Ananth

Quote:
Originally Posted by catkin View Post
Which shell do the new users get when they log on? What is their shell in /etc/passwd?
 
Old 07-20-2011, 10:00 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Glad you found a solution

Threads can be marked SOLVED via the Thread Tools menu.
 
1 members found this post helpful.
  


Reply


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
[SOLVED] Another Ksh Command completion query manyrootsofallevil Solaris / OpenSolaris 3 03-31-2011 04:26 AM
tab completion in command line interface linuxgentoo Programming 4 08-29-2008 01:35 AM
ksh command completion rwalders Linux - Newbie 4 11-01-2007 07:51 PM
Command line tab completion reboots Suse 9.3 lmckinney SUSE / openSUSE 2 01-16-2006 05:29 AM
enabling command option completion s_deepblue Debian 4 12-02-2005 06:42 PM


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

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