CSC495-2014 / TeamworkEnglewoodGit

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

ssh Key Generation location #152

Closed kjmcmahon closed 10 years ago

kjmcmahon commented 10 years ago

@ZAM- @cdwainscott found that the key is being generated in the operating systems root directory, in my case /data/users/kjmcmahon was created. I'm under the impression that it is supposed to be created in our projects data/users/{user} directory.

mikeholler commented 10 years ago

@wwforg you will really want to look at this.

mikeholler commented 10 years ago

@kjmcmahon, I think you found the problem Will's been trying to debug for days.

mikeholler commented 10 years ago

How did you get these results? I need to see the test and see how you ran it @kjmcmahon.

wwforg commented 10 years ago

That would be it I think. Since the apache user only has permissions to work with /var/TeamworkEnglewoodGit, anything outside of that wouldn't work

kjmcmahon commented 10 years ago

I dont know how to copy look at AbstractFileSystem.php line 11: "const ROOT = '/data/';" then in FileSystem.php ~ $userPath = FileSystem::ROOT . 'users/' . $user; ~ $privateKeyPath = $userPath . '/ida_rsa'; ~ mkdir($userPath, Config::get('filesystem.permissions.directory'), true); // RW for user

(i dont know how to copy code to look nice into a comment)

mikeholler commented 10 years ago

How to format GitHub posts

mikeholler commented 10 years ago

You found it Ken. I'll work on a hotfix for it ASAP after I finish verifying you are 100% correct.

mikeholler commented 10 years ago

This fixes the problem #153.