Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-17-2008, 10:05 PM
|
#1
|
Member
Registered: Jun 2008
Posts: 112
Rep:
|
new user, weird shell
I created a new user, l4d1, then logged into it with "su l4d1". What is with the new shell? It's just a question mark "?", no command completion or command history.
The l4d1 user doesn't have a password and can only be logged into with "su l4d1".
|
|
|
12-18-2008, 12:11 AM
|
#2
|
LQ Newbie
Registered: Dec 2008
Posts: 10
Rep:
|
sounds like the user wasn't defined correctly during creation.. if you're signed in as root type pico /etc/passwd and make sure the users shell is /bin/bash (or whatever the path to bash is on your particular distro), also if your signed in as root you can type chsh username to change the shell from there.. set it to bash (type "which bash" as root to get the absolute path)
|
|
|
12-18-2008, 04:03 AM
|
#3
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Rep:
|
Did you use adduser or useradd? adduser is simpler and interactive. Read the relevant man pages for the differences.
|
|
|
12-18-2008, 05:01 AM
|
#4
|
Member
Registered: Aug 2007
Posts: 73
Rep:
|
change a user's passwd:
'passwd'
|
|
|
12-18-2008, 05:08 AM
|
#5
|
Member
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Rep:
|
instead of "su l4d1"
you should use "su - l4d1"
so that user directory would also be inherited.
also do
echo $SHELL and post the output.
|
|
|
12-19-2008, 04:04 AM
|
#6
|
LQ Newbie
Registered: Jul 2003
Location: Abingdon, UK
Distribution: Ubuntu
Posts: 26
Rep:
|
If you look at the /etc/passwd file, what shell is defined for that user?
// Mike
|
|
|
All times are GMT -5. The time now is 03:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|