I’m having problems with file permissions, that is my script is unable to create files and directories in the folder it resides within.
What should I do in order to make it possible for the script?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ideally, you’d examine the script and determine exactly what it does, where it requires access, which type of access, and then determine the correct permissions for access. You certainly shouldn’t apply a recursive permissions command from your cli, which is what you might find which a quick google search. This would be something like
chmod 777 -R directoryname. That’s a bad idea as it become a security risk pretty rapidly. You should apply the correct permissions to everything that script can touch.To start with, here are resources to help learn a bit more about permissions. http://ss64.com/bash/chmod.html or http://catcode.com/teachmod/
If you’re unsure about the script, feel free to post code and inquire about what it’s doing.
edit: If the script you’re having trouble with has a community behind it, it would be best to inquire on the community message boards if they exist.