The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mod_ruid2 upgrade

Discussion in 'EasyApache' started by ramil, Mar 15, 2016.

  1. ramil

    ramil Active Member

    Joined:
    Dec 28, 2003
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    after rebuilding of apache+php with mod_ruid2 some apache processes still running under 'nobody' user, I made a httpd restart but no success, can you explain how to completely switch to mod_ruid?

    Thanks
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    When using mod_ruid2, and there have been no requests, Apache will run as nobody. Once a request comes in for that specific user, Apache will drop to that UID.

    Code:
    # ps fuax | grep httpd
    root     29663  0.0  0.0 103300   872 pts/0    S+   10:34   0:00          \_ grep httpd
    root      9044  0.0  0.7 226832 23184 ?        Ss   10:28   0:00 /usr/local/apache/bin/httpd -k start
    nobody    9047  0.0  0.7 227128 21928 ?        S    10:28   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody    9048  0.0  0.7 227136 21952 ?        S    10:28   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody    9049  0.0  0.7 227136 21960 ?        S    10:28   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody    9050  0.0  0.7 227136 21920 ?        S    10:28   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody    9051  0.0  0.7 227144 21932 ?        S    10:28   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody   10247  0.0  0.7 227136 21972 ?        S    10:29   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody   26051  0.0  0.6 226832 18504 ?        S    10:32   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody   26536  0.0  0.6 226832 18500 ?        S    10:33   0:00  \_ /usr/local/apache/bin/httpd -k start
    Hit the site

    Code:
    # ps fuax | grep httpd
    root     29674  0.0  0.0 103300   872 pts/0    S+   10:34   0:00          \_ grep httpd
    root      9044  0.0  0.7 226832 23184 ?        Ss   10:28   0:00 /usr/local/apache/bin/httpd -k start
    nobody    9047  0.0  0.7 227128 21928 ?        S    10:28   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody    9048  0.0  0.7 227136 21952 ?        S    10:28   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody    9049  0.0  0.7 227136 21960 ?        S    10:28   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody    9050  0.0  0.7 227136 21920 ?        S    10:28   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody    9051  0.0  0.7 227144 21932 ?        S    10:28   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody   10247  0.0  0.7 227136 21972 ?        S    10:29   0:00  \_ /usr/local/apache/bin/httpd -k start
    perk     26051  0.0  0.6 226968 20640 ?        S    10:32   0:00  \_ /usr/local/apache/bin/httpd -k start
    nobody   26536  0.0  0.6 226832 18500 ?        S    10:33   0:00  \_ /usr/local/apache/bin/httpd -k start
    Notice the Apache pid running under 'perk'. This is mod_ruid2 dropping privileges to that user. Is this not happening on your server?
     
Loading...

Share This Page