I have created a git application with a domain and website and a second ssh user. I have given this user access to the application directory as described here: https://docs.webfaction.com/software/general.html#granting-access-to-specific-users I found that the website was returning a 500 error because my main user did not have correct permissions for the gitweb script. I fixed this using 'chmod 711 . script' as described here: https://docs.webfaction.com/software/static.html#error-premature-end-of-script-headers However, changing the permissions is this way removes the permissions I initially granted to the second ssh user. I have tried a few things with setfacl and chmod but so far I have not found any solution that allows both the ssh user to access the directory and the website to function properly. I am new to shared hosting and managing permissions in this manner so any help would be appreciated. Thanks asked 31 Aug '15, 21:00 sulibarri |
Actually, I take that back. Here is a workaround that seems to meet both needs in my tests:
Hope that helps! answered 31 Aug '15, 23:27 seanf Thanks, that makes a lot of sense. I am building an app with a friend and the ssh user was meant for him to have access to all applications related to the project. It made sense (in my head at least) for the user to have permissions on the repo directly but I can now see why this causes a conflict with gitweb. I guess I will ask him how he would prefer to have access and configure it accordingly.
(31 Aug '15, 23:34)
sulibarri
See my edit for a possible best-of-both-worlds solution :)
(31 Aug '15, 23:37)
seanf
|
You should place the app within your main user's directory and grant the secondary user access to that via setfacl or the control panel, not the other way around. You can't host webapps in secondary user's accounts without issues, they are designed to be in the main user account. answered 31 Aug '15, 23:06 johns Sorry if I was not clear. The app is in the webapps directory of my main account as it should be. I gave the second ssh user permissions to it via setfacl as directed by the instructions in my first link. My problem is that I cannot access the git webapp with those permissions in place, it returns a 500 error code. The solution shown in the second link fixes the 500 error problem but also revokes the permissions I gave to the ssh user via setfacl.
(31 Aug '15, 23:22)
sulibarri
|