Results 1 to 5 of 5
I have no idea what happened but here's the situation:
1. If I execute any app that is installed in the root (bin or whatever), such as "tar" or "ls" ...
- 10-20-2009 #1Just Joined!
- Join Date
- May 2008
- Posts
- 37
Help! All apps in /bin giving error: "cannot execute binary"
I have no idea what happened but here's the situation:
1. If I execute any app that is installed in the root (bin or whatever), such as "tar" or "ls" or "su" it says:
NOTE: the above happens when i just type "tar" at the command line or "ls" with no path.Code:bash: /home/MyUserName/bin/ls: cannot execute binary file or bash: /home/MyUserName/bin/tar: cannot execute binary file or bash: /home/MyUserName/bin/su: cannot execute binary file
2. If I execute the app directly (such as "/bin/tar") it works!
What could have happened? How do i fix this?
NOTE: If I do "echo $PATH", I see /bin in there!
- 10-20-2009 #2Linux Newbie
- Join Date
- Apr 2009
- Posts
- 160
can you post the output of your $PATH please? I know you said it's in there, but could you post it any way please. Could be a typo somewhere.NOTE: If I do "echo $PATH", I see /bin in there!
- 10-20-2009 #3
what is contents of this directory? /home/MyUserName/bin/
Probably that directory is first on the path, and if those commands exist in there, they will be used, rather than the ones that are in /bin.
- 10-21-2009 #4Linux Newbie
- Join Date
- Apr 2009
- Posts
- 160
- 10-21-2009 #5
May be his admin/friend play this trick on him.Creating a "bin" directory on his ~
and placing binaries with root permission
- Just my guess.
Post output of following commands !!
echo $PATH
ls -l /home/MyUserName/bin/- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------


Reply With Quote
