LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 12-17-2008, 10:05 PM   #1
Shwick
Member
 
Registered: Jun 2008
Posts: 112

Rep: Reputation: 15
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".
 
Old 12-18-2008, 12:11 AM   #2
shanecraddock@gmail.com
LQ Newbie
 
Registered: Dec 2008
Posts: 10

Rep: Reputation: 0
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)
 
Old 12-18-2008, 04:03 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Blog Entries: 61

Rep: Reputation: Disabled
Did you use adduser or useradd? adduser is simpler and interactive. Read the relevant man pages for the differences.
 
Old 12-18-2008, 05:01 AM   #4
ozminh
Member
 
Registered: Aug 2007
Posts: 73

Rep: Reputation: 19
change a user's passwd:
'passwd'
 
Old 12-18-2008, 05:08 AM   #5
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
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.
 
Old 12-19-2008, 04:04 AM   #6
merixon
LQ Newbie
 
Registered: Jul 2003
Location: Abingdon, UK
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
If you look at the /etc/passwd file, what shell is defined for that user?

// Mike
 
  


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
How do i change to super user then revert back to ordinary user ,using shell script? wrapster Solaris / OpenSolaris 6 03-18-2009 03:37 AM
How to run root privileged Linux command as normal user via shell shell tcegrid Linux - Newbie 1 06-23-2008 03:38 PM
Weird behavior with exported shell variable Joe Marrero Programming 1 12-17-2006 09:43 AM
Weird problem: Mandrake 10.0 and 10.1 shell Fuzzyo Linux - Software 3 01-22-2005 04:30 PM
Weird user issues??? raid517 Linux - Software 2 11-27-2004 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:56 AM.

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
Open Source Consulting | Domain Registration