LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-14-2007, 08:26 AM   #1
Stagger Lee
LQ Newbie
 
Registered: May 2007
Distribution: Slackware 12
Posts: 17

Rep: Reputation: 0
Odd login problem


Still new to Slack, and was attempting to chage to zshell last night as a friend of mine said I ought to try it out.
Not exactly sure the command I put in, soemthing along the lines of
Code:
chsh -s zsh root
But it may have been slightly different.

Anyways, now, after a shutdown, I can't login anymore. The message I get is:

Code:
login: root
password: xxxx
Linux 2.6.21.5~smp.
Last login: Wed Nov 14 .9:13:52 -0500 2007 on tty1.
You have mail.
Cannot execute zsh: No such file or directory
Then it gives me the login line again.

Running Slack 12, fresh install, and I was just in the process of setting up the system the wy I want it, so don't think I'm generally running in root :P

I haven't added any users yet as I'm still configuring everything or I'd have tried logging in to that user.

So basically, can I fix this? Or am I stuck reinstalling? I haven't done a ton of work on the system so a reinstll wouldn't kill me, but would still like to know how to fix this so that I can do it the next time I screw up. ^_^

Thanks
 
Old 11-14-2007, 08:51 AM   #2
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
You shouldn't have to reinstall. But you may have to download a live-cd of some kind. I prefer Slax Frodo for jobs like this, BTW. Once you have booted the live-cd, be sure your root partition is mounted somewhere, then edit your root line in /etc/passwd to match the following:
Quote:
root:x:0:0::/root:/bin/bash
Be sure that you just edit the name of the shell. Doing any more could cause more problems.
Regards,
Bill
 
Old 11-14-2007, 09:17 AM   #3
Stagger Lee
LQ Newbie
 
Registered: May 2007
Distribution: Slackware 12
Posts: 17

Original Poster
Rep: Reputation: 0
Glorious, thanks. Already had a copy of slax on a flash drive, completely forgot about it.
 
Old 11-14-2007, 01:45 PM   #4
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
Slax is great

Maybe you should have used this instead:
Code:
chsh -s /bin/zsh root
?
 
Old 11-14-2007, 07:31 PM   #5
quiescere
Member
 
Registered: Sep 2003
Distribution: Slackware64 14.2
Posts: 54

Rep: Reputation: 15
First, are you sure you have zsh installed on the system? (I ask because on one of my systems I just assumed it was there, switched to zsh, and felt really dumb when I finally figured out why my login was failing.) Simply installing that package might solve your problem.

Second, I know you already have a copy of Slax, but for future reference, the Slackware install CD will allow you either to boot fully from the CDROM, so you can mount and modify your partitions independently, or boot your normal system using a kernel from the CD. (Useful if you bollix your kernel or lilo setup).
 
Old 11-14-2007, 08:16 PM   #6
Stagger Lee
LQ Newbie
 
Registered: May 2007
Distribution: Slackware 12
Posts: 17

Original Poster
Rep: Reputation: 0
Well, I got it fixed and then went searching and it turns out zsh isn't there after all. :P

I think I'm going to wait for a little while before trying anything more alien anyways. I'm coming from Ubuntu with Gnome, so I'm getting used to a whole new system here and it's taking all my efforts to just figure out how to compile and install new packages.

And here I thought Ubuntu would be a good way to learn linux... /sigh
 
Old 11-14-2007, 08:27 PM   #7
Stagger Lee
LQ Newbie
 
Registered: May 2007
Distribution: Slackware 12
Posts: 17

Original Poster
Rep: Reputation: 0
Say, since this thread is still going, and I don't want to clutter up the forum with my newbishness any more than necessary....

Just downloaded slapt-get pkg and am trying to install it. I'm following the beginers guide here

http://www.linuxforums.org/forum/lin...re-readme.html

and have followed the directions there as best I could. downloaded and unpacked the tar to /usr/local/src but when I go to run ./configure I get an error saying:

Code:
Bash: ./configure: No such file or directory
What am I missing here? I'm sure as usual it's something painfully simple and/or obvious.;

Thanks in advance for any help you can give.
 
Old 11-14-2007, 09:00 PM   #8
quiescere
Member
 
Registered: Sep 2003
Distribution: Slackware64 14.2
Posts: 54

Rep: Reputation: 15
Quote:
Originally Posted by Stagger Lee View Post
Just downloaded slapt-get pkg and am trying to install it.
If you downloaded the slapt-get package then compilation is unnecessary. Just change to the directory into which you downloaded the package and run as root
Code:
installpkg ./slapt-get-0.9.12c-i386-1.tgz
(If the numbers are a little different, use the appropriate values.)
 
Old 11-14-2007, 09:07 PM   #9
Stagger Lee
LQ Newbie
 
Registered: May 2007
Distribution: Slackware 12
Posts: 17

Original Poster
Rep: Reputation: 0
So basically you can just run installpks if it's a tgz file and you need to compile it if it's a .tar.zg , tar.bz2 or zip file?
 
Old 11-14-2007, 10:18 PM   #10
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
Quote:
Originally Posted by Stagger Lee View Post
Well, I got it fixed and then went searching and it turns out zsh isn't there after all. :P
Are you using Slack 12? If so, zsh comes with it by default. (Probably with most earlier versions too)

I was able to reproduce your error using

Code:
chsh -s zsh username
and was successful using:

Code:
chsh -s /bin/zsh username
 
Old 11-15-2007, 12:05 AM   #11
Stagger Lee
LQ Newbie
 
Registered: May 2007
Distribution: Slackware 12
Posts: 17

Original Poster
Rep: Reputation: 0
Ahh, I see where I went wrong there.

Once I've got my bearings I'll give it a try, for now I'm fairly used to the way bash works so I'll stick with that till I run out of other things to play with.
 
  


Reply



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
odd errors when entering username for login GUIPenguin Linux - General 1 04-10-2006 05:37 AM
odd login error in /var/log/secure in FC3 zepplin611 Fedora 1 03-14-2005 09:25 AM
Odd login-crash for Normal User electronique Slackware 13 02-15-2005 03:11 PM
You aren't running in a login shell. ? Odd error esears Linux - Software 1 05-20-2004 03:00 PM
An odd problem moger Linux - Hardware 5 09-25-2002 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:21 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
Open Source Consulting | Domain Registration