To build on what Luiz_andrade said, Knoppix is a Live CD that can be used for maintenance and rescue.
The idea is to boot to the CD, mount the hard disk, chroot
the root directory of the hard disk, then fix the permissions issue.
You can find Knoppix
here. If you already have a CD of something that will allow you to boot to a live session, you can use that.