I just cloned the mini_fb_demo from Github, went into the directory and ran script/server
, and got this error:
-bash: script/server: Permission denied
I've been using script/server like this for other projects for awhile, and this has never happened. What is causing this? Thanks for reading.
For solving this error, you need to add the correct permissions to the file to execute. However, you need to be a “root” user or have sudo access for changing the permission. For changing the permission, Linux offers a chmod command. The chmod stands for change mod.
To fix the permission denied error in Linux, one needs to change the file permission of the script. Use the “chmod” (change mode) command for this purpose.
We can provide the executable permission by using the below command, chmod +x filename.sh. chmod (Change Mode) - Using chmod we can change the access permissions to file system objects. +x - It makes the file executable.
You probably don't have execute permission on script/server
.
Try: chmod +x script/server
then start it again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With