1
1
ABOUT
2
- mod_ruid2 is a suexec module for apache 2.0, based on mod_ruid and mod_suid2
2
+ mod_ruid2 is a suexec module for apache 2.0, 2.2 and 2.4, based on mod_ruid and mod_suid2
3
3
4
4
-it runs only on linux because afaik only linux has implemented posix 1003.1e capabilities
5
5
-it has better performance than mod_suid2 because it doesn`t need to kill httpd children
@@ -9,12 +9,12 @@ mod_ruid2 is a suexec module for apache 2.0, based on mod_ruid and mod_suid2
9
9
or something..
10
10
11
11
-there are two main operation modes: stat and config
12
- 1. stat
13
- is default, httpd setuid and setgid to uid and gid of requested filename(script)/directory
14
- this is good if you use mod_vhost_alias for virtual hosting
12
+ 1. config
13
+ is default, you must define uid and gid. If no [ug]id is defined the default user and group are used.
15
14
16
- 2. config
17
- like mod_suid2, you must define uid and gid
15
+ 2. stat
16
+ httpd setuid and setgid to uid and gid of requested filename(script)/directory
17
+ this is good if you use mod_vhost_alias for virtual hosting
18
18
19
19
INSTALL
20
20
1. download and install latest libcap from here
@@ -23,16 +23,17 @@ INSTALL
23
23
4. restart apache
24
24
25
25
CONFIGURE OPTIONS:
26
- RMode config|stat (default is stat )
26
+ RMode config|stat (default is config )
27
27
RUidGid user|#uid group|#gid - when RMode is config, set to this uid and gid
28
28
29
29
RMinUidGid user|#uid group|#gid - when uid/gid is < than min uid/gid set to default uid/gid
30
30
RDefaultUidGid user|#uid group|#gid
31
31
32
32
RGroups group1 group2 - aditional groups set via setgroups
33
-
33
+ @none erase al previous defined groups.
34
+
34
35
RDocumentChrRoot - Set chroot directory and the document root inside
35
-
36
+
36
37
37
38
EXAMPLE:
38
39
@@ -49,7 +50,7 @@ EXAMPLE:
49
50
RDocumentChRoot /home /example.com/public_html
50
51
ServerName example.com
51
52
ServerAlias www.example.com
52
- RMode config
53
+ RMode config # unnecessary since config is the default
53
54
RUidGid user1 group1
54
55
RGroups apachetmp
55
56
0 commit comments