LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-31-2003, 10:50 AM   #1
ChangeOfPace
Member
 
Registered: Mar 2003
Posts: 34

Rep: Reputation: 15
OS Problem (Possible Virus)?


SuSE 7.3 - Machine was working fine, I have not used it in a few days as I was working on something else.

Now when I login (any profile) I See the following:

Last Login...
Have a lot of fun
Bash: DIRCOLORS: Command not found

Nothing works now!!

ls = command not found
dir = " "

Try to change the IP of my NIC = Command not found

Please help me!!

A Thanks You
 
Old 03-31-2003, 11:44 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
One of your configration files seems broken. System settings are not set. Log in and see if /bin/ls works. If it does, run
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11/bin
and see if you can run most of your programs. If you can, look into /etc/profiles and make sure it looks correctly.

You may also run fsck to check your partition.

Are you sure you haven't instelled anyting/changed configuration etc last day it worked correctly?
 
Old 03-31-2003, 12:12 PM   #3
ChangeOfPace
Member
 
Registered: Mar 2003
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks-

PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11/bin

Worked!! What did it do?

I was working on install and config of J2RE, J2SDK & TOMCAT. Guess I had a system problem and did not notice until today.

Thanks again
 
Old 03-31-2003, 12:14 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
As Mara said you still want to check /etc/profiles to see if everything looks okay. Once you logout of the shell your PATH variable will be reset to whatever it was before(apparently nothing).
 
Old 03-31-2003, 12:24 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
I guess you changes your PATH the wrong way (in /etc/profiles). Search for something like
export PATH=/usr/local/java/something
It should be:
export PATH=$PATH:/usr/local/java/something

When you run 'ls' the shell looks into PATH and ties all the directories into it to run the program. When there's one directory in PATH, basic executables are not found.
export PATH=$PATH:/something
adds /something to your PATH, without deleting the old one.
 
Old 03-31-2003, 12:26 PM   #6
ChangeOfPace
Member
 
Registered: Mar 2003
Posts: 34

Original Poster
Rep: Reputation: 15
/etc/profiles looks ok to me.

I was told not to touch that file in SuSE 7.3. I did however edit the /etc/profile.local

Perhaps something I added to this file is causing a problem?
 
Old 03-31-2003, 12:43 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
So please search for something like I mentioned in post no 5 in your /etc/profile.local
 
  


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
Virus Problem nkutty Linux - Security 1 11-30-2005 03:56 AM
MBR virus problem njbrain General 10 04-05-2005 02:40 AM
Windows Virus Problem the_imax General 7 09-25-2004 01:05 AM
Boot virus or Anti-Virus? AVG Free Anti-Virus Software problems SparceMatrix Linux - Security 9 08-02-2004 03:35 PM
trend chipway virus detected boot virus rafc Linux - Security 1 05-13-2004 02:44 AM


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