What does it mean when `ls` shows a numeric user id?











up vote
3
down vote

favorite












I'm fairly new to the ubuntu system. We have an Ubuntu server where we host our WordPress sites, and I have seen a lot of 1002 users when I do the ls -lh command inside a directory, like:



-rw-rw-r-- 1 1002 www-data 3.0K May 7 2014 wp-login.php


What is, or who is user 1002?










share|improve this question




























    up vote
    3
    down vote

    favorite












    I'm fairly new to the ubuntu system. We have an Ubuntu server where we host our WordPress sites, and I have seen a lot of 1002 users when I do the ls -lh command inside a directory, like:



    -rw-rw-r-- 1 1002 www-data 3.0K May 7 2014 wp-login.php


    What is, or who is user 1002?










    share|improve this question


























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I'm fairly new to the ubuntu system. We have an Ubuntu server where we host our WordPress sites, and I have seen a lot of 1002 users when I do the ls -lh command inside a directory, like:



      -rw-rw-r-- 1 1002 www-data 3.0K May 7 2014 wp-login.php


      What is, or who is user 1002?










      share|improve this question















      I'm fairly new to the ubuntu system. We have an Ubuntu server where we host our WordPress sites, and I have seen a lot of 1002 users when I do the ls -lh command inside a directory, like:



      -rw-rw-r-- 1 1002 www-data 3.0K May 7 2014 wp-login.php


      What is, or who is user 1002?







      user-management






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 23 '14 at 2:54









      psusi

      30.9k14986




      30.9k14986










      asked Dec 22 '14 at 22:49









      rolzan

      1813




      1813






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          8
          down vote



          accepted










          1002 is the UID for the user that owned the file. Having a numerical value instead of a username means that the user that owns the file no longer exists in the /etc/passwd file.



          If you run cat /etc/passwd you'll see a list of all the user accounts on the system.



          root:x:0:0:root:/root:/bin/bash
          daemon:x:1:1:daemon:/usr/sbin:/bin/sh
          bin:x:2:2:bin:/bin:/bin/sh


          The first integer is the UID, or the user's unique numerical identification. The second is the GUID, and this pertains to the user's primary group number.



          Did you make any changes, or remove the user that owns the file from the system?






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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%2faskubuntu.com%2fquestions%2f564473%2fwhat-does-it-mean-when-ls-shows-a-numeric-user-id%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            8
            down vote



            accepted










            1002 is the UID for the user that owned the file. Having a numerical value instead of a username means that the user that owns the file no longer exists in the /etc/passwd file.



            If you run cat /etc/passwd you'll see a list of all the user accounts on the system.



            root:x:0:0:root:/root:/bin/bash
            daemon:x:1:1:daemon:/usr/sbin:/bin/sh
            bin:x:2:2:bin:/bin:/bin/sh


            The first integer is the UID, or the user's unique numerical identification. The second is the GUID, and this pertains to the user's primary group number.



            Did you make any changes, or remove the user that owns the file from the system?






            share|improve this answer



























              up vote
              8
              down vote



              accepted










              1002 is the UID for the user that owned the file. Having a numerical value instead of a username means that the user that owns the file no longer exists in the /etc/passwd file.



              If you run cat /etc/passwd you'll see a list of all the user accounts on the system.



              root:x:0:0:root:/root:/bin/bash
              daemon:x:1:1:daemon:/usr/sbin:/bin/sh
              bin:x:2:2:bin:/bin:/bin/sh


              The first integer is the UID, or the user's unique numerical identification. The second is the GUID, and this pertains to the user's primary group number.



              Did you make any changes, or remove the user that owns the file from the system?






              share|improve this answer

























                up vote
                8
                down vote



                accepted







                up vote
                8
                down vote



                accepted






                1002 is the UID for the user that owned the file. Having a numerical value instead of a username means that the user that owns the file no longer exists in the /etc/passwd file.



                If you run cat /etc/passwd you'll see a list of all the user accounts on the system.



                root:x:0:0:root:/root:/bin/bash
                daemon:x:1:1:daemon:/usr/sbin:/bin/sh
                bin:x:2:2:bin:/bin:/bin/sh


                The first integer is the UID, or the user's unique numerical identification. The second is the GUID, and this pertains to the user's primary group number.



                Did you make any changes, or remove the user that owns the file from the system?






                share|improve this answer














                1002 is the UID for the user that owned the file. Having a numerical value instead of a username means that the user that owns the file no longer exists in the /etc/passwd file.



                If you run cat /etc/passwd you'll see a list of all the user accounts on the system.



                root:x:0:0:root:/root:/bin/bash
                daemon:x:1:1:daemon:/usr/sbin:/bin/sh
                bin:x:2:2:bin:/bin:/bin/sh


                The first integer is the UID, or the user's unique numerical identification. The second is the GUID, and this pertains to the user's primary group number.



                Did you make any changes, or remove the user that owns the file from the system?







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 29 at 20:10









                wjandrea

                8,06142258




                8,06142258










                answered Dec 22 '14 at 22:56









                Enefbee

                1161




                1161






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f564473%2fwhat-does-it-mean-when-ls-shows-a-numeric-user-id%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







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕