Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rhildred/addgituser

add a user that can only access the server resources in their home directory through git over http
https://github.com/rhildred/addgituser

Last synced: 12 days ago
JSON representation

add a user that can only access the server resources in their home directory through git over http

Awesome Lists containing this project

README

        

addGitUser
==========

add a user that can only access the server resources in their home directory through git over http

to run:

curl https://raw.github.com/rhildred/addGitUser/master/addGitUser | bash -s

to create another repository under the same account:

curl https://raw.github.com/rhildred/addGitUser/master/addRepo | bash -s repositoryName

started with:

an account set up under cpanel that I can ssh to, mod_auth_digest installed and activated

in detail:

* make basic directories git and rails_apps ... also a tmp1 directory that we will delete

* make the bare first repo

* clone working copy in to tmp1

* write the post-receive hook

* make the .htaccess with the security and the rewrite rule

* make the .htaccess to run our script

* make our script

* set the rest of the userdir permissions

* commit everything and check out into the rails_apps work tree

* link in to work tree

* clean up tmp1 directory