]> lifelog.hopto.org Git - dev_notes.git/commitdiff
.
authorWill Budic <redacted>
Wed, 18 Dec 2024 09:43:13 +0000 (20:43 +1100)
committerWill Budic <redacted>
Wed, 18 Dec 2024 09:43:13 +0000 (20:43 +1100)
configuration_notes/git_installation_with_gitweb.md

index f625eca9ddc192f07710abe1705520f321a268b4..13dc094a5b60dc2987d9171f3a0db9174e2bf214 100644 (file)
 
 
 
-
 ## Adding User
+### Add git account first, if not already there
+  * Check With
+  ```git config --list```
+
+### Adding Without Shell Access Method
+ * Thease are system type of accounts. That share same home directory wich the admin allow can public sercice access to an shared home.
+ * Setting to a shared home in /tmp somewhere is not recomended. As on reboot the system might wipe the tmp dir.
+
+```bash
+mkdir /home/dev_share
+chown -R git:git /home/dev_share
+useradd -r -s /bin/false -g git --home /home/dev_share dev_user
+password dev_user
+```
+
+### Adding With Shell Access as Remote
+  * This links to remote bash shell if any special to system.
+```bash
+useradd -r -s /usr/bin/rbash -g git --home /home/dev_share dev_user
+```
 
 [Top](#git-installation-for-developers-steps)
 
+
+
 ## Create Public Key on Client
 
 [Top](#git-installation-for-developers-steps)
 [Top](#git-installation-for-developers-steps)
 
 
-
+---
 <!-- @import "[TOC]" {cmd="toc" depthFrom=1 depthTo=6 orderedList=false} -->
 
 <!-- code_chunk_output -->
-###**Table Of Contents**
+#### **Table Of Contents**
+
 - [Git Installation For Developers Steps](#git-installation-for-developers-steps)
   - [Adding User](#adding-user)
   - [Create Public Key on Client](#create-public-key-on-client)
   - [Create On Server Global Repository](#create-on-server-global-repository)
   - [Git Add & Commit](#git-add--commit)
-    - [**Table Of Contents**](#table-of-contents)
 
 <!-- /code_chunk_output -->
\ No newline at end of file