Fix command sample not to use chmod 777