1
I have an Ubuntu 9.10 netbook. It has always run great. Two days ago, I was running as root for a while (~30), and when I moved back to my user account (only other account on this machine), all the commands in ~/bin stopped working.
If I try ls, it comes up with "cannot execute binary file". Same with ln, mv, mkdir, clear, cp, etc. They all run as root (which makes sense, different files), but I have no idea why this happened. I don't want to stay as root to move around easily. Any idea?
Did you copy or install something? Or do something while logged in as root that might have allowed unauthorized access to your system that was able to copy or install something? As root, in Bash, try
type -a ls
then try it as your user and compare. Then dols -bil $(type -afp ls)
as each and compare. – Paused until further notice. – 2010-04-27T02:36:34.733how did you switch back to the other user? did you
su <user>
,su - user
, or just logout form theroot
session? – warren – 2010-04-27T02:53:38.2303Try becoming root and do a "history | more" and perhaps you'll be able to see what happened. – Chris Nava – 2010-04-27T02:54:13.313
What are the rights on those files ?
What is the value of your $PATH environment variable ? – slubman – 2010-04-27T08:28:56.407