I guess its chmod -R 777 and not -r but both may work but not sure of