LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-19-2003, 09:25 AM   #1
notREALly
LQ Newbie
 
Registered: Nov 2003
Distribution: slackware
Posts: 11

Rep: Reputation: 0
problem with root-login (messed all up?)


when I try to login with root there is somthing like the following message ..
bash: cannot find /bin/bash
 
Old 11-19-2003, 09:28 AM   #2
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Rep: Reputation: 30
Can you login with another user or does this happen for all users?
 
Old 11-19-2003, 09:42 AM   #3
notREALly
LQ Newbie
 
Registered: Nov 2003
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
it happens only with root ... ( /bibn/bash* does exist)

may I accidently deleted something ?
 
Old 11-20-2003, 09:56 AM   #4
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Rep: Reputation: 30
Hi. It could be two things...

If root cannot log in - something got messed up in your /etc/passwd file and the login shell was spelled incorrectly (Last part of the root line). Make sure that it reads /bin/bash

-or-

If root can log in - something is wrong with one of your login scripts. Depending on how many scripts you have it could take some time to find. I would start by searching your /root/.bash_profile and your /root/.bashrc files for /bibn/bash. If the problem isn't in those, check what scripts they are running.... if it's not THOSE.... then check /etc/bashrc.....

tip #1 - easy way to scan a file is to use the command:
cat /etc/bashrc | grep bibn

Disclaimer - I'm not sure where slack keeps the files mentioned above... my experience comes from other distro's.
 
  


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
login root problem khebs Linux - Security 1 08-30-2005 03:10 PM
SUSE 9 root login problem suchi Linux - Networking 2 07-24-2005 01:44 PM
login as root problem in SUSE 9.1 mc99044 Suse/Novell 5 11-05-2004 05:56 PM
Problem Login As Root, Help!!!!! abulafiar Linux - Newbie 4 08-15-2004 03:54 PM
Messed up root, cannot login Plankt Linux - Newbie 7 09-22-2003 01:54 PM


All times are GMT -5. The time now is 05:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration