{"thread":{"id":"19662","subject":"Can I set up a GIT server w/o administration privileges on a Solaris machine?","startedAt":"2009-06-04T16:35:50Z","lastAt":"2009-06-05T08:42:30Z","messageCount":4,"participants":["stuart","Tomas Carnecky","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"115434","messageId":"4A27F7E6.8060405@xnet.com","threadId":"19662","inReplyTo":null,"subject":"Can I set up a GIT server w/o administration privileges on a Solaris machine?","fromName":"stuart","fromEmail":"stuart@xnet.com","sentAt":"2009-06-04T16:35:50Z","receivedAt":"2009-06-04T16:35:50Z","isPatch":false,"sender":{"key":"stuart@xnet.com","avatar":null},"body":"Hi...\n\nCan I set up a GIT server w/o administration privileges on a Solaris \nmachine?\n\nI think this should be a simple question to answer.  I have looked in \nthe archives - but most, if not all, who post are setting up GIT servers \n  using administration privileges.  I have a shell account on a Solaris \nbox where I can create web pages and trigger the execution of scripts \nfrom those pages...but no administration right.  So, I started down the \npath of privately installing software.  However, it became apparent that \nI need git listing on this port and running that daemon...both of which \nare almost impossible with out administration rights.\n\nSo, is there a way to get some basic GIT functionality through serving \nup web pages and executing CGI scripts.  Is there somewhere I can read \nup on this type of server installation?\n\n-thank you\n"},{"id":"115435","messageId":"32C5F26D-7498-440C-8BF4-97AF137EF78F@dbservice.com","threadId":"19662","inReplyTo":"4A27F7E6.8060405@xnet.com","subject":"Re: Can I set up a GIT server w/o administration privileges on a Solaris machine?","fromName":"Tomas Carnecky","fromEmail":"tom@dbservice.com","sentAt":"2009-06-04T17:34:00Z","receivedAt":"2009-06-04T17:34:00Z","isPatch":false,"sender":{"key":"tom@dbservice.com","avatar":"https://gravatar.com/avatar/900a300bdd1a8bbe086008ad78210bbee2ad2803b7d50a5cba04c1e9404bd6d2?d=mp&s=160"},"body":"\nOn Jun 4, 2009, at 6:35 PM, stuart wrote:\n\n> Hi...\n>\n> Can I set up a GIT server w/o administration privileges on a Solaris  \n> machine?\n>\n> I think this should be a simple question to answer.  I have looked  \n> in the archives - but most, if not all, who post are setting up GIT  \n> servers  using administration privileges.  I have a shell account on  \n> a Solaris box where I can create web pages and trigger the execution  \n> of scripts from those pages...but no administration right.  So, I  \n> started down the path of privately installing software.  However, it  \n> became apparent that I need git listing on this port and running  \n> that daemon...both of which are almost impossible with out  \n> administration rights.\n\nThe default port of the git daemon is 9418. Unix systems usually don't  \nrequire admin privileges to bind to port >1024. Maybe there's a  \nfirewall between you and the solaris box preventing you from  \nconnecting to such non-standard port? If you are sure there is no such  \nthing, then simply fire up git-daemon and try to connect to it:\n\n(assuming /path/to/repo.git is the git repository on the server)\nserver$ git-daemon --export-all --verbose --base-path=/path/to/ /path/ \nto/\nclient$ git ls-remote git://<server>/repo.git\n\nIf the connection was successful, then stop git-daemon, add '--detach'  \nto its command line and start it again. It will put itself into the  \nbackground, so you can log off the server and git-daemon will keep  \nrunnig. One downside is that it will not be automatically restarted  \nwhen it crashes, or when the server is restarted.\n\n> So, is there a way to get some basic GIT functionality through  \n> serving up web pages and executing CGI scripts.  Is there somewhere  \n> I can read up on this type of server installation?\n\nGit can be used over dumb http protocol. Fetching through http is  \nfairly easy, simply put the git repo into a directory where the web  \nserver has read rights. Pushing through http will likely require you  \nto edit the http server settings. Also, git:// protocol is almost  \nalways preferable over http://.\n\ntom\n"},{"id":"115436","messageId":"8F7A6F2A-D286-4DC2-B17A-FB016C31B1F2@dbservice.com","threadId":"19662","inReplyTo":"32C5F26D-7498-440C-8BF4-97AF137EF78F@dbservice.com","subject":"Re: Can I set up a GIT server w/o administration privileges on a Solaris machine?","fromName":"Tomas Carnecky","fromEmail":"tom@dbservice.com","sentAt":"2009-06-04T17:37:55Z","receivedAt":"2009-06-04T17:37:55Z","isPatch":false,"sender":{"key":"tom@dbservice.com","avatar":"https://gravatar.com/avatar/900a300bdd1a8bbe086008ad78210bbee2ad2803b7d50a5cba04c1e9404bd6d2?d=mp&s=160"},"body":"\nOn Jun 4, 2009, at 7:34 PM, Tomas Carnecky wrote:\n\n>\n> On Jun 4, 2009, at 6:35 PM, stuart wrote:\n>\n>> Hi...\n>>\n>> Can I set up a GIT server w/o administration privileges on a  \n>> Solaris machine?\n>>\n>> I think this should be a simple question to answer.  I have looked  \n>> in the archives - but most, if not all, who post are setting up GIT  \n>> servers  using administration privileges.  I have a shell account  \n>> on a Solaris box where I can create web pages and trigger the  \n>> execution of scripts from those pages...but no administration  \n>> right.  So, I started down the path of privately installing  \n>> software.  However, it became apparent that I need git listing on  \n>> this port and running that daemon...both of which are almost  \n>> impossible with out administration rights.\n>\n> The default port of the git daemon is 9418. Unix systems usually  \n> don't require admin privileges to bind to port >1024. Maybe there's  \n> a firewall between you and the solaris box preventing you from  \n> connecting to such non-standard port? If you are sure there is no  \n> such thing, then simply fire up git-daemon and try to connect to it:\n>\n> (assuming /path/to/repo.git is the git repository on the server)\n> server$ git-daemon --export-all --verbose --base-path=/path/to/ / \n> path/to/\n> client$ git ls-remote git://<server>/repo.git\n>\n> If the connection was successful, then stop git-daemon, add '-- \n> detach' to its command line and start it again. It will put itself  \n> into the background, so you can log off the server and git-daemon  \n> will keep runnig. One downside is that it will not be automatically  \n> restarted when it crashes, or when the server is restarted.\n>\n>> So, is there a way to get some basic GIT functionality through  \n>> serving up web pages and executing CGI scripts.  Is there somewhere  \n>> I can read up on this type of server installation?\n>\n> Git can be used over dumb http protocol. Fetching through http is  \n> fairly easy, simply put the git repo into a directory where the web  \n> server has read rights. Pushing\n\n... and run git-update-server-info in the git repository.\n\n> through http will likely require you to edit the http server  \n> settings. Also, git:// protocol is almost always preferable over  \n> http://.\n>\n> tom\n>\n"},{"id":"115495","messageId":"m3eitz6php.fsf@localhost.localdomain","threadId":"19662","inReplyTo":"32C5F26D-7498-440C-8BF4-97AF137EF78F@dbservice.com","subject":"Re: Can I set up a GIT server w/o administration privileges on a Solaris machine?","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2009-06-05T08:42:30Z","receivedAt":"2009-06-05T08:42:30Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Tomas Carnecky <tom@dbservice.com> writes:\n\n> The default port of the git daemon is 9418. Unix systems usually don't\n> require admin privileges to bind to port >1024. Maybe there's a\n> firewall between you and the solaris box preventing you from\n> connecting to such non-standard port? If you are sure there is no such\n> thing, then simply fire up git-daemon and try to connect to it:\n> \n> (assuming /path/to/repo.git is the git repository on the server)\n>\n> server$ git-daemon --export-all --verbose \\\n>   --base-path=/path/to/ /path/to/\n> client$ git ls-remote git://<server>/repo.git\n\nUse dashless form \"git daemon\" and not \"git-daemon\", otherwise\nit cannot be found with modern git installation.\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"}]}