LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-26-2004, 11:02 AM   #1
jchun
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
bash command is Not working in "root"


Hi!

In Fedora core 2, I got following error when I only logged in as "root".
I got following messages.

-bash: export: `=': not a valid identifier
-bash: export: `/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/
bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/j2sdk1.4.2_05/usr/jav
a/j2sdk1.4.2_05': not a valid identifier

And then When I tried bash command, "ls", I got following error

"-bash: ls: command not found"

I think all bash commands are having problems.
However, the other user ids seem fine for the commands.

When I typed "echo $PATH"
I got "/opt/manage/ant-1.6.2/bin:/opt/manage/maven-1.0/bin"

So, I tried "set PATH=$PATH:/bin"
Same results I got.
Still bash commands are not working in "root"

I am sorry for the easy question.
But, please help me.
I really appreciate it.

Last edited by jchun; 10-26-2004 at 11:06 AM.
 
Old 10-26-2004, 11:13 AM   #2
-mk-
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Rep: Reputation: 0
are you running bash shell for root? check /etc/passwd,
do you have csh (or any other shell) specific code in .login?

perhaps of some help!

-ms
 
Old 10-26-2004, 01:27 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: bash command is Not working in "root"

Quote:
Originally posted by jchun
Hi!

In Fedora core 2, I got following error when I only logged in as "root".
I got following messages.

-bash: export: `=': not a valid identifier
-bash: export: `/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/
bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/j2sdk1.4.2_05/usr/jav
a/j2sdk1.4.2_05': not a valid identifier

And then When I tried bash command, "ls", I got following error

"-bash: ls: command not found"

I think all bash commands are having problems.
However, the other user ids seem fine for the commands.

When I typed "echo $PATH"
I got "/opt/manage/ant-1.6.2/bin:/opt/manage/maven-1.0/bin"

So, I tried "set PATH=$PATH:/bin"
Same results I got.
Still bash commands are not working in "root"

I am sorry for the easy question.
But, please help me.
I really appreciate it.
If it's not the wrong shell as mk suggested, my suspicion
would be that you have stuffed up your ~/.bashrc (or ~/.bash_login
or ~/.profile - you get the idea) ...



Cheers,
Tink
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
"service __ restart" bash command isn't working case1984 Linux - Newbie 9 04-10-2008 02:35 PM
Bash: "after" or "waitfor" command enemorales Programming 3 06-15-2005 12:04 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
"linuxconf" command not working in bash!! sharathkv Linux - Newbie 2 07-28-2003 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 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