Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

All of the sudden the handy command ls stopped working on my Ubuntu 10.04 server.

The only thing I did was add a new entry to the PATH environment variable and that was all.

Here is the result from echo $PATH:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/root/java/bin

Why this is happening?

Also, I navigated to the /usr/bin folder and the ls program was there but I wasn't able to run it from there either.

Edit: 'ps' is also not working. I also tried to remove the lines I edited on .bashrc and nothing changes

Plus stat /bin/ls gives me this:

Size: 39696         Blocks: 80         IO Block: 4096   regular file
Device: 802h/2050d  Inode: 13377592    Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (  122/ UNKNOWN)   Gid: (  114/ UNKNOWN)
Access: 2011-08-11 06:25:04.000000000 +0200
Modify: 2010-09-21 20:32:55.000000000 +0200
Change: 2011-07-24 17:22:39.000000000 +0200
share|improve this question
    
Could you please include in your question exactly what happens when you run ls. –  N.N. Aug 10 '11 at 13:38
    
@N.N. From the way I'm reading it, it does nothing. –  jrg Aug 10 '11 at 13:45
    
ls is typically in /bin/ls –  Marco Ceppi Aug 10 '11 at 13:57
1  
What does stat /bin/ls tell you? –  taneli Aug 11 '11 at 8:49
1  
Can you update the question with your findings based on the comments here? This would make it easier to understand the question without having to traverse this discussion. –  Shoan Aug 11 '11 at 11:35

1 Answer 1

Judging by the file size and this link, you have a rootkit on your system. The most sensible course of action is to make a backup of any personal data and reinstall from scratch.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.