LinuxQuestions.org
Help answer threads with 0 replies.
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, 12:02 PM   #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 12:06 PM.
 
Old 10-26-2004, 12:13 PM   #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, 02:27 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
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


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


All times are GMT -5. The time now is 04:09 PM.

Main Menu
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