Permission denied (os error 13) when cargo build/run/clean

Using ubuntu 20.04 (aws lightsail instance) Cargo run/build/clean etc not working getting this Permission denied (os error 13) What can be wrong ?

What does ls -ld ~/server show?

heyo , shows this drwxr-xr-x 5 root root 4096 Sep 6 21:56 /home/ubuntu/server

Your user doesn't have write permissions for the folder. You can change the owner of the folder and all it's child files and folders with sudo chown -R ubuntu . assuming the user you want to run cargo under is ubuntu and your terminal session is currently in the server directory.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.