CSC495-2014 / TeamworkEnglewoodGit

GNU General Public License v2.0
5 stars 15 forks source link

Still getting permission denied on mkdir #150

Closed wwforg closed 10 years ago

wwforg commented 10 years ago

@ZAM- I pulled the latest version of the project, did rm -rf data like mike said to do but when I call your sshKeyGen i still get the mkdir permission denied error. Do I need to commit the data folder from the project? It's currently in the gitignore file.

mikeholler commented 10 years ago

@ZAM- to add some more information, files are configured to be created with 0664 permissions and directories 0775. All files and folders in /var/TeamworkEnglewoodGit/ are owned by www-data, the Apache user. I see no reason why it would not be able to create the directory.

mikeholler commented 10 years ago

@wwforg what is the exact error message you are getting?

mikeholler commented 10 years ago

@wwforg also provide steps to reproduce this problem.

wwforg commented 10 years ago

ErrorException mkdir(): Permission denied

and it happens on line 256 of the FileSystem Model:

mkdir($userPath, Config::get('filesystem.permissions.directory'), true); // RW for user

Same as last time

wwforg commented 10 years ago

I get this problem when I attempt to do my normal login flow on the server. I login with GitHub, it redirects back, i get the token and userdetails, but when it gets to where I call Zacs sshKeyGen, it throws this error

mikeholler commented 10 years ago

It did not happen when I tried to log in.

kjmcmahon commented 10 years ago

I believe you meant line 296 of FileSystem.php. I believe it's trying to create the key in your systems root directory, which it might not have permissions for