I accidentally changed to only write permission on /usr/bin... please Help!

I accidentally changed to sudo chmod a=w to my /usr/bin folder on my macbook with OS 10.5.8... Please help! I can't even get into a terminal correctly cause it displays:

-bash: uname: command not found
-bash: cut: command not found
-bash: uname: command not found
-bash: cut: command not found
-bash: /usr/bin/perl: Permission denied
-bash: [: too many arguments
-bash: grep: command not found
-bash: grep: command not found
-bash: cut: command not found
-bash: grep: command not found
-bash: cut: command not found
-bash: grep: command not found
-bash: /Users/ro/.gem/ruby/1.8/bin: No such file or directory
RosBook:~ ro$ 

And when I trying to changed back the permission set it doesn't even recognize the "sudo" command... I have tryied several times to Repair Disk Permissions using disk utility but it doesn't seem to work either, can someone please help me through this?

Many thanks

On the OSX, isn't chmod in the /bin directory?

Yes, the thing is I need to use the sudo as follow:

RosBook:~ ro$ sudo chmod 777 /usr/bin
-bash: sudo: command not found

But sudo is not found given that I don't have neither read permission nor execution permission ....

boot from dvd and change the permissions back...

My guess is he does not have the boot disks. I certainly don't have my OSX boot disks or DVD.

If not, another option might be to grab the required binaries from the Apple Darwin Open Source download site.

I would upload some of what he needs, but I use an older PowerPC iMac, not an Intel box.

hmmm... but if the dvd IS available, it should be an easy task to repair the permissions. if not... damn :wink:

Cheers! It worked wonderfully :slight_smile: