From 141240110cc18a376187e00c05bd8f128cacfe21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20L=C3=B8vdal?= Date: Sun, 15 Oct 2017 00:10:19 +0200 Subject: [PATCH 1/3] Add compilation and installation instructions Addresses https://github.com/ncopa/su-exec/issues/9 --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 577814d..5151847 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,18 @@ can be used instead of names. Example: $ su-exec apache:1000 /usr/sbin/httpd -f /opt/www/httpd.conf ``` +## Installation + +To compile and install run + +```shell +make +make install +``` + +which will install under `/usr/local`. To install somewhere else you can use the +`PREFIX` variable, like `make install PREFIX=$HOME/software`. + ## TTY & parent/child handling Notice how `su` will make `ps` be a child of a shell while `su-exec` From da2614913d4e0604c762f82c26e73430f8fe3812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20L=C3=B8vdal?= Date: Sun, 11 Feb 2018 23:57:22 +0100 Subject: [PATCH 2/3] Merge README.md changes from frebib/master --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 5151847..bc53f27 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,15 @@ can be used instead of names. Example: $ su-exec apache:1000 /usr/sbin/httpd -f /opt/www/httpd.conf ``` +Alternatively `user-spec` can be `-e` or `--env` to enable setting the user/group from environment variables instead: + +```shell +$ export SUID=123 +$ export SGID=456 +$ su-exec --env id +uid=123 gid=456 groups=456 +``` + ## Installation To compile and install run From f738901d66a6087883c3ff62a6900a702b10c861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20L=C3=B8vdal?= Date: Mon, 12 Feb 2018 00:02:38 +0100 Subject: [PATCH 3/3] Revert "Merge README.md changes from frebib/master" This reverts commit da2614913d4e0604c762f82c26e73430f8fe3812. --- README.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/README.md b/README.md index bc53f27..5151847 100644 --- a/README.md +++ b/README.md @@ -24,15 +24,6 @@ can be used instead of names. Example: $ su-exec apache:1000 /usr/sbin/httpd -f /opt/www/httpd.conf ``` -Alternatively `user-spec` can be `-e` or `--env` to enable setting the user/group from environment variables instead: - -```shell -$ export SUID=123 -$ export SGID=456 -$ su-exec --env id -uid=123 gid=456 groups=456 -``` - ## Installation To compile and install run