Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Gabotronix's avatar

find: missing argument to -exec

I'm trying to execute a bunch of commands in my ubuntu VPS:

sudo find /var/www/lacasadelmuelle.es -type d -exec chmod 755 && sudo find /var/www/lacasadelmuelle.es -type f -exec chmod 644 && sudo chmod 775 /var/www/lacasadelmuelle.es/public/uploads && sudo setfacl -Rdm u:www-data:rwx,u:GabotronES:rwx storage bootstrap/cache && sudo setfacl -Rm u:www-data:rwx,u:GabotronES:rwx storage bootstrap/cache

but for some reason I'm getting this error:

find: missing argument to `-exec'

What am I doing wrong??

0 likes
1 reply

Please or to participate in this conversation.