Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-bash: ./manage.py: Permission denied

After running: $ ./manage.py migrate I am getting the following error:

-bash: ./manage.py: Permission denied 

Trying to run a migration after making a change in the DB. Any advice would be really appreciated.

like image 630
ssherwin Avatar asked May 07 '11 01:05

ssherwin


People also ask

How do I fix permission is denied in Python?

The PermissionError: [errno 13] permission denied error occurs when you try to access a file from Python without having the necessary permissions. To fix this error, use the chmod or chown command to change the permissions of the file so that the right user and/or group can access the file.

What does Permission denied mean in Python?

Permission denied simply means the system is not having permission to write the file to that folder. Give permissions to the folder using "sudo chmod 777 " from terminal and try to run it.


1 Answers

You need to make manage.py executable to excecute it. Do chmod +x manage.py to make it excecutable. Alternately you can do python manage.py <cmd> instead.

like image 51
zeekay Avatar answered Oct 14 '22 23:10

zeekay