Phpsysinfo shows the content of the variables which hold the startup user and group of the apache processes. Since this value is not modified by mod_ruid2 phpsysinfo displays wrong information. If it's possible I fix this behavior in the next mod_ruid2 version..
Put this in a php script to verify mod_ruid operation
PHP:<?php // outputs the username that owns the running php/httpd process // (on a system with the "id" executable in the path) //phpinfo(); echo exec('id'); ?>
now it shows the right user!
but the process of apache still running under apache user.
is it supposed to be like this?
ps aux | grep httpd
apache 4629 0.2 0.4 195856 16920 ? S 12:06 0:02 /usr/sbin/httpd -k start -DSSL
apache 4750 0.2 0.4 196948 18016 ? S 12:13 0:01 /usr/sbin/httpd -k start -DSSL
apache 4818 0.4 0.4 196132 17196 ? S 12:17 0:02 /usr/sbin/httpd -k start -DSSL
apache 4884 0.1 0.4 196448 17520 ? S 12:18 0:00 /usr/sbin/httpd -k start -DSSL
apache 4887 0.2 0.4 196688 17752 ? S 12:18 0:00 /usr/sbin/httpd -k start -DSSL
apache 4905 0.3 0.4 197728 18640 ? S 12:19 0:01 /usr/sbin/httpd -k start -DSSL
apache 4907 0.3 0.4 197952 18988 ? S 12:19 0:01 /usr/sbin/httpd -k start -DSSL
apache 4909 0.1 0.4 198196 19256 ? S 12:19 0:00 /usr/sbin/httpd -k start -DSSL
apache 4933 0.3 0.4 196892 17576 ? S 12:19 0:01 /usr/sbin/httpd -k start -DSSL
apache 4947 0.2 0.4 198208 18876 ? S 12:19 0:00 /usr/sbin/httpd -k start -DSSL
apache 4989 0.3 0.4 195872 16936 ? S 12:20 0:00 /usr/sbin/httpd -k start -DSSL
apache 4994 0.1 0.4 195408 16436 ? S 12:20 0:00 /usr/sbin/httpd -k start -DSSL
apache 5004 0.1 0.4 197152 18208 ? S 12:21 0:00 /usr/sbin/httpd -k start -DSSL
apache 5005 0.1 0.4 197760 18832 ? S 12:21 0:00 /usr/sbin/httpd -k start -DSSL
apache 5012 1.0 0.4 197952 19012 ? S 12:21 0:01 /usr/sbin/httpd -k start -DSSL
apache 5016 0.1 0.4 197468 18072 ? S 12:21 0:00 /usr/sbin/httpd -k start -DSSL
apache 5019 0.1 0.4 196908 17976 ? S 12:21 0:00 /usr/sbin/httpd -k start -DSSL
apache 5032 0.4 0.4 196916 17848 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5033 0.1 0.4 196400 17448 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5036 0.2 0.4 196940 17624 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5040 0.1 0.4 196652 17656 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5043 0.4 0.4 196896 17952 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5044 0.3 0.4 195408 16444 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5046 0.1 0.4 196908 17840 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5048 0.1 0.4 197924 18544 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5050 0.4 0.4 196932 17576 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5052 0.0 0.4 197580 18424 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5054 0.1 0.4 198716 19412 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5055 0.1 0.4 196696 17260 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5060 0.2 0.4 198192 19152 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5061 0.3 0.4 197940 18932 ? S 12:22 0:00 /usr/sbin/httpd -k start -DSSL
apache 5069 0.4 0.4 196908 17896 ? S 12:23 0:00 /usr/sbin/httpd -k start -DSSL
apache 5071 0.9 0.4 197428 18460 ? S 12:23 0:00 /usr/sbin/httpd -k start -DSSL
apache 5073 1.1 0.4 197940 19004 ? S 12:23 0:01 /usr/sbin/httpd -k start -DSSL
apache 5074 0.6 0.4 195596 16620 ? S 12:23 0:00 /usr/sbin/httpd -k start -DSSL
apache 5075 0.1 0.4 197952 18916 ? S 12:23 0:00 /usr/sbin/httpd -k start -DSSL
apache 5076 1.2 0.4 198464 18984 ? S 12:23 0:01 /usr/sbin/httpd -k start -DSSL
apache 5078 0.0 0.3 194576 13848 ? S 12:23 0:00 /usr/sbin/httpd -k start -DSSL
apache 5085 0.1 0.4 198464 18984 ? S 12:23 0:00 /usr/sbin/httpd -k start -DSSL
apache 5093 0.8 0.4 197684 18704 ? S 12:24 0:00 /usr/sbin/httpd -k start -DSSL
apache 5096 0.7 0.4 197940 18856 ? S 12:24 0:00 /usr/sbin/httpd -k start -DSSL
apache 5097 0.2 0.4 195880 16656 ? S 12:24 0:00 /usr/sbin/httpd -k start -DSSL
root 5100 0.0 0.0 103304 840 pts/1 S+ 12:24 0:00 grep httpd
root 57469 0.0 0.3 193892 15404 ? Ss 00:11 0:05 /usr/sbin/httpd -k start -DSSL