Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rhildred/addgituser
- Owner: rhildred
- Created: 2012-05-10T21:04:14.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-07-07T20:25:49.000Z (over 12 years ago)
- Last Synced: 2024-04-14T14:03:01.843Z (9 months ago)
- Language: Shell
- Size: 117 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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