apache user does not exist









up vote
3
down vote

favorite
1












I'm trying to run the command, chown -R apache:apache xyz
But I'm getting error, chown: apache:apache': invalid user



Then I tried for the user www-data, but with same results.



Then I tried to check who owns the apache process by running, ps -Af |grep httpd.
I get the following,



root 29577 1 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody 29754 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody 29756 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody 29757 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody 29758 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody 29759 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody 29760 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
root 29785 29358 0 18:04 pts/0 00:00:00 grep httpd


So, where is the apache user?



Thanks.










share|improve this question



























    up vote
    3
    down vote

    favorite
    1












    I'm trying to run the command, chown -R apache:apache xyz
    But I'm getting error, chown: apache:apache': invalid user



    Then I tried for the user www-data, but with same results.



    Then I tried to check who owns the apache process by running, ps -Af |grep httpd.
    I get the following,



    root 29577 1 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
    nobody 29754 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
    nobody 29756 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
    nobody 29757 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
    nobody 29758 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
    nobody 29759 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
    nobody 29760 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
    root 29785 29358 0 18:04 pts/0 00:00:00 grep httpd


    So, where is the apache user?



    Thanks.










    share|improve this question

























      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      I'm trying to run the command, chown -R apache:apache xyz
      But I'm getting error, chown: apache:apache': invalid user



      Then I tried for the user www-data, but with same results.



      Then I tried to check who owns the apache process by running, ps -Af |grep httpd.
      I get the following,



      root 29577 1 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      nobody 29754 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      nobody 29756 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      nobody 29757 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      nobody 29758 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      nobody 29759 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      nobody 29760 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      root 29785 29358 0 18:04 pts/0 00:00:00 grep httpd


      So, where is the apache user?



      Thanks.










      share|improve this question















      I'm trying to run the command, chown -R apache:apache xyz
      But I'm getting error, chown: apache:apache': invalid user



      Then I tried for the user www-data, but with same results.



      Then I tried to check who owns the apache process by running, ps -Af |grep httpd.
      I get the following,



      root 29577 1 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      nobody 29754 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      nobody 29756 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      nobody 29757 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      nobody 29758 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      nobody 29759 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      nobody 29760 29577 0 18:00 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
      root 29785 29358 0 18:04 pts/0 00:00:00 grep httpd


      So, where is the apache user?



      Thanks.







      linux apache






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 10 at 20:51









      Rust

      3,96451944




      3,96451944










      asked Mar 18 '11 at 18:16









      tecman

      1353410




      1353410






















          5 Answers
          5






          active

          oldest

          votes

















          up vote
          9
          down vote



          accepted










          Your apache runs as the user called "nobody" (Yes nobody is a username).



          I have newer seen a linux where the apache user were called apache but you can configure the name in the apache config. Which linux version are you using?






          share|improve this answer




















          • linux version : centos 5.5
            – tecman
            Mar 18 '11 at 18:29

















          up vote
          7
          down vote













          look in the configuration for apache - httpd.conf. The following lines should give you the needed informations.



          For the user do:



          find / -name httpd.conf | xargs grep -i "^user"


          and for the group do:



          find / -name httpd.conf | xargs grep -i "^group" 


          -Martin






          share|improve this answer
















          • 1




            If using apache2, it is file named apache2.conf
            – Luka Govedič
            Feb 17 '16 at 15:39

















          up vote
          1
          down vote













          the user called "www-data" in apache2






          share|improve this answer



























            up vote
            0
            down vote













            Not all linux servers use apache and group apache. It looks like the server is running the process as nobody.



            Are you root on the server? If so you can look in the /etc/groups file to see what groups are defined.






            share|improve this answer



























              up vote
              0
              down vote













              I've got the same problem when triyng to make the chroot with only some libraries. When I tried to su the same message was happened:



              su: user xxxxxdoes not exist


              Seems not all libraries was copied to the chroot subdirectory, so you can try to copy all if you've prepared the chroot dir



              cp --parent -avR /usr/lib64 /CHROOT_DIR
              cp --parent -avR /usr/lib /CHROOT_DIR
              ln -s /CHROOT_DIR/usr/lib64 /CHROOT_DIR/lib64
              ln -s /CHROOT_DIR/usr/lib64 /CHROOT_DIR/lib64





              share|improve this answer




















                Your Answer






                StackExchange.ifUsing("editor", function ()
                StackExchange.using("externalEditor", function ()
                StackExchange.using("snippets", function ()
                StackExchange.snippets.init();
                );
                );
                , "code-snippets");

                StackExchange.ready(function()
                var channelOptions =
                tags: "".split(" "),
                id: "1"
                ;
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function()
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled)
                StackExchange.using("snippets", function()
                createEditor();
                );

                else
                createEditor();

                );

                function createEditor()
                StackExchange.prepareEditor(
                heartbeatType: 'answer',
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader:
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                ,
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                );



                );













                 

                draft saved


                draft discarded


















                StackExchange.ready(
                function ()
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f5356167%2fapache-user-does-not-exist%23new-answer', 'question_page');

                );

                Post as a guest















                Required, but never shown

























                5 Answers
                5






                active

                oldest

                votes








                5 Answers
                5






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                9
                down vote



                accepted










                Your apache runs as the user called "nobody" (Yes nobody is a username).



                I have newer seen a linux where the apache user were called apache but you can configure the name in the apache config. Which linux version are you using?






                share|improve this answer




















                • linux version : centos 5.5
                  – tecman
                  Mar 18 '11 at 18:29














                up vote
                9
                down vote



                accepted










                Your apache runs as the user called "nobody" (Yes nobody is a username).



                I have newer seen a linux where the apache user were called apache but you can configure the name in the apache config. Which linux version are you using?






                share|improve this answer




















                • linux version : centos 5.5
                  – tecman
                  Mar 18 '11 at 18:29












                up vote
                9
                down vote



                accepted







                up vote
                9
                down vote



                accepted






                Your apache runs as the user called "nobody" (Yes nobody is a username).



                I have newer seen a linux where the apache user were called apache but you can configure the name in the apache config. Which linux version are you using?






                share|improve this answer












                Your apache runs as the user called "nobody" (Yes nobody is a username).



                I have newer seen a linux where the apache user were called apache but you can configure the name in the apache config. Which linux version are you using?







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 18 '11 at 18:21









                MTilsted

                2,43362749




                2,43362749











                • linux version : centos 5.5
                  – tecman
                  Mar 18 '11 at 18:29
















                • linux version : centos 5.5
                  – tecman
                  Mar 18 '11 at 18:29















                linux version : centos 5.5
                – tecman
                Mar 18 '11 at 18:29




                linux version : centos 5.5
                – tecman
                Mar 18 '11 at 18:29












                up vote
                7
                down vote













                look in the configuration for apache - httpd.conf. The following lines should give you the needed informations.



                For the user do:



                find / -name httpd.conf | xargs grep -i "^user"


                and for the group do:



                find / -name httpd.conf | xargs grep -i "^group" 


                -Martin






                share|improve this answer
















                • 1




                  If using apache2, it is file named apache2.conf
                  – Luka Govedič
                  Feb 17 '16 at 15:39














                up vote
                7
                down vote













                look in the configuration for apache - httpd.conf. The following lines should give you the needed informations.



                For the user do:



                find / -name httpd.conf | xargs grep -i "^user"


                and for the group do:



                find / -name httpd.conf | xargs grep -i "^group" 


                -Martin






                share|improve this answer
















                • 1




                  If using apache2, it is file named apache2.conf
                  – Luka Govedič
                  Feb 17 '16 at 15:39












                up vote
                7
                down vote










                up vote
                7
                down vote









                look in the configuration for apache - httpd.conf. The following lines should give you the needed informations.



                For the user do:



                find / -name httpd.conf | xargs grep -i "^user"


                and for the group do:



                find / -name httpd.conf | xargs grep -i "^group" 


                -Martin






                share|improve this answer












                look in the configuration for apache - httpd.conf. The following lines should give you the needed informations.



                For the user do:



                find / -name httpd.conf | xargs grep -i "^user"


                and for the group do:



                find / -name httpd.conf | xargs grep -i "^group" 


                -Martin







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 18 '11 at 18:30









                MNeimeier

                1462




                1462







                • 1




                  If using apache2, it is file named apache2.conf
                  – Luka Govedič
                  Feb 17 '16 at 15:39












                • 1




                  If using apache2, it is file named apache2.conf
                  – Luka Govedič
                  Feb 17 '16 at 15:39







                1




                1




                If using apache2, it is file named apache2.conf
                – Luka Govedič
                Feb 17 '16 at 15:39




                If using apache2, it is file named apache2.conf
                – Luka Govedič
                Feb 17 '16 at 15:39










                up vote
                1
                down vote













                the user called "www-data" in apache2






                share|improve this answer
























                  up vote
                  1
                  down vote













                  the user called "www-data" in apache2






                  share|improve this answer






















                    up vote
                    1
                    down vote










                    up vote
                    1
                    down vote









                    the user called "www-data" in apache2






                    share|improve this answer












                    the user called "www-data" in apache2







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Apr 2 at 9:04









                    Paranoid

                    111




                    111




















                        up vote
                        0
                        down vote













                        Not all linux servers use apache and group apache. It looks like the server is running the process as nobody.



                        Are you root on the server? If so you can look in the /etc/groups file to see what groups are defined.






                        share|improve this answer
























                          up vote
                          0
                          down vote













                          Not all linux servers use apache and group apache. It looks like the server is running the process as nobody.



                          Are you root on the server? If so you can look in the /etc/groups file to see what groups are defined.






                          share|improve this answer






















                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            Not all linux servers use apache and group apache. It looks like the server is running the process as nobody.



                            Are you root on the server? If so you can look in the /etc/groups file to see what groups are defined.






                            share|improve this answer












                            Not all linux servers use apache and group apache. It looks like the server is running the process as nobody.



                            Are you root on the server? If so you can look in the /etc/groups file to see what groups are defined.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 18 '11 at 18:21









                            huntsfromshadow

                            993610




                            993610




















                                up vote
                                0
                                down vote













                                I've got the same problem when triyng to make the chroot with only some libraries. When I tried to su the same message was happened:



                                su: user xxxxxdoes not exist


                                Seems not all libraries was copied to the chroot subdirectory, so you can try to copy all if you've prepared the chroot dir



                                cp --parent -avR /usr/lib64 /CHROOT_DIR
                                cp --parent -avR /usr/lib /CHROOT_DIR
                                ln -s /CHROOT_DIR/usr/lib64 /CHROOT_DIR/lib64
                                ln -s /CHROOT_DIR/usr/lib64 /CHROOT_DIR/lib64





                                share|improve this answer
























                                  up vote
                                  0
                                  down vote













                                  I've got the same problem when triyng to make the chroot with only some libraries. When I tried to su the same message was happened:



                                  su: user xxxxxdoes not exist


                                  Seems not all libraries was copied to the chroot subdirectory, so you can try to copy all if you've prepared the chroot dir



                                  cp --parent -avR /usr/lib64 /CHROOT_DIR
                                  cp --parent -avR /usr/lib /CHROOT_DIR
                                  ln -s /CHROOT_DIR/usr/lib64 /CHROOT_DIR/lib64
                                  ln -s /CHROOT_DIR/usr/lib64 /CHROOT_DIR/lib64





                                  share|improve this answer






















                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    I've got the same problem when triyng to make the chroot with only some libraries. When I tried to su the same message was happened:



                                    su: user xxxxxdoes not exist


                                    Seems not all libraries was copied to the chroot subdirectory, so you can try to copy all if you've prepared the chroot dir



                                    cp --parent -avR /usr/lib64 /CHROOT_DIR
                                    cp --parent -avR /usr/lib /CHROOT_DIR
                                    ln -s /CHROOT_DIR/usr/lib64 /CHROOT_DIR/lib64
                                    ln -s /CHROOT_DIR/usr/lib64 /CHROOT_DIR/lib64





                                    share|improve this answer












                                    I've got the same problem when triyng to make the chroot with only some libraries. When I tried to su the same message was happened:



                                    su: user xxxxxdoes not exist


                                    Seems not all libraries was copied to the chroot subdirectory, so you can try to copy all if you've prepared the chroot dir



                                    cp --parent -avR /usr/lib64 /CHROOT_DIR
                                    cp --parent -avR /usr/lib /CHROOT_DIR
                                    ln -s /CHROOT_DIR/usr/lib64 /CHROOT_DIR/lib64
                                    ln -s /CHROOT_DIR/usr/lib64 /CHROOT_DIR/lib64






                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered May 5 '17 at 9:31









                                    Alex

                                    52169




                                    52169



























                                         

                                        draft saved


                                        draft discarded















































                                         


                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function ()
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f5356167%2fapache-user-does-not-exist%23new-answer', 'question_page');

                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        這個網誌中的熱門文章

                                        How to read a connectionString WITH PROVIDER in .NET Core?

                                        Node.js Script on GitHub Pages or Amazon S3

                                        Museum of Modern and Contemporary Art of Trento and Rovereto