diff options
author | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-08-22 19:37:41 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-22 16:40:40 -0700 |
commit | 678dac6b45437d65fa958c03ca47f4a0337efad4 (patch) | |
tree | 36b1e0a3c2560f41941ec38036c501b5ca74169f /Documentation | |
parent | 44c10841ea3edeef47cc6be0fdba5058344e2e95 (diff) | |
download | git-678dac6b45437d65fa958c03ca47f4a0337efad4.tar.gz git-678dac6b45437d65fa958c03ca47f4a0337efad4.tar.xz |
Added support for dropping privileges to git-daemon.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-daemon.txt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Documentation/git-daemon.txt b/Documentation/git-daemon.txt index 0f7d274ea..17619a3f5 100644 --- a/Documentation/git-daemon.txt +++ b/Documentation/git-daemon.txt @@ -11,7 +11,8 @@ SYNOPSIS 'git-daemon' [--verbose] [--syslog] [--inetd | --port=n] [--export-all] [--timeout=n] [--init-timeout=n] [--strict-paths] [--base-path=path] [--user-path | --user-path=path] - [--reuseaddr] [--detach] [--pid-file=file] [directory...] + [--reuseaddr] [--detach] [--pid-file=file] + [--user=user [--group=group]] [directory...] DESCRIPTION ----------- @@ -93,6 +94,17 @@ OPTIONS --pid-file=file:: Save the process id in 'file'. +--user=user, --group=group:: + Change daemon's uid and gid before entering the service loop. + When only `--user` is given without `--group`, the + primary group ID for the user is used. The values of + the option are given to `getpwnam(3)` and `getgrnam(3)` + and numeric IDs are not supported. ++ +Giving these options is an error when used with `--inetd`; use +the facility of inet daemon to achieve the same before spawning +`git-daemon` if needed. + <directory>:: A directory to add to the whitelist of allowed directories. Unless --strict-paths is specified this will also include subdirectories |