Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission denied when running script/server

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.

like image 482
ben Avatar asked Oct 12 '10 10:10

ben


People also ask

How do I fix permissions denied?

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.

How do I run shell script Permission denied?

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.

How do I give script permissions?

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.


1 Answers

You probably don't have execute permission on script/server.

Try: chmod +x script/server then start it again.

like image 57
KARASZI István Avatar answered Oct 02 '22 22:10

KARASZI István