What does user “1000” mean in “ls -l”? [duplicate]











up vote
1
down vote

favorite













This question already has an answer here:




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

    1 answer




I checked the files



greedy@algorithms:~$ ls -l shared.md locknoblank.sh 
-rw-r--r-- 1 1000 1000 236 Nov 29 19:59 shared.md
-rwxr-xr-x 1 greedy 1000 58 Nov 29 14:38 locknoblank.sh


What does 1000 mean?










share|improve this question















marked as duplicate by wjandrea, karel, Fabby, muru bash
Users with the  bash badge can single-handedly close bash questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 30 at 5:12


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 1




    In Desktop Ubuntu, 1000 is usually the first user/group id that is created when installing. Maybe you removed that user, so that the system cannot get the name. But the files still have this ID. What is the output of id -u Or this is some custom/server installation ...
    – RoVo
    Nov 29 at 15:06












  • Funny, I would expect this to be documented, but neither man ls or info coreutils 'ls invocation' mention it.
    – wjandrea
    Nov 29 at 20:05















up vote
1
down vote

favorite













This question already has an answer here:




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

    1 answer




I checked the files



greedy@algorithms:~$ ls -l shared.md locknoblank.sh 
-rw-r--r-- 1 1000 1000 236 Nov 29 19:59 shared.md
-rwxr-xr-x 1 greedy 1000 58 Nov 29 14:38 locknoblank.sh


What does 1000 mean?










share|improve this question















marked as duplicate by wjandrea, karel, Fabby, muru bash
Users with the  bash badge can single-handedly close bash questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 30 at 5:12


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 1




    In Desktop Ubuntu, 1000 is usually the first user/group id that is created when installing. Maybe you removed that user, so that the system cannot get the name. But the files still have this ID. What is the output of id -u Or this is some custom/server installation ...
    – RoVo
    Nov 29 at 15:06












  • Funny, I would expect this to be documented, but neither man ls or info coreutils 'ls invocation' mention it.
    – wjandrea
    Nov 29 at 20:05













up vote
1
down vote

favorite









up vote
1
down vote

favorite












This question already has an answer here:




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

    1 answer




I checked the files



greedy@algorithms:~$ ls -l shared.md locknoblank.sh 
-rw-r--r-- 1 1000 1000 236 Nov 29 19:59 shared.md
-rwxr-xr-x 1 greedy 1000 58 Nov 29 14:38 locknoblank.sh


What does 1000 mean?










share|improve this question
















This question already has an answer here:




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

    1 answer




I checked the files



greedy@algorithms:~$ ls -l shared.md locknoblank.sh 
-rw-r--r-- 1 1000 1000 236 Nov 29 19:59 shared.md
-rwxr-xr-x 1 greedy 1000 58 Nov 29 14:38 locknoblank.sh


What does 1000 mean?





This question already has an answer here:




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

    1 answer








bash






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 29 at 20:07









wjandrea

8,06142258




8,06142258










asked Nov 29 at 14:55









recursivleyGreedy

164




164




marked as duplicate by wjandrea, karel, Fabby, muru bash
Users with the  bash badge can single-handedly close bash questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 30 at 5:12


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by wjandrea, karel, Fabby, muru bash
Users with the  bash badge can single-handedly close bash questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 30 at 5:12


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    In Desktop Ubuntu, 1000 is usually the first user/group id that is created when installing. Maybe you removed that user, so that the system cannot get the name. But the files still have this ID. What is the output of id -u Or this is some custom/server installation ...
    – RoVo
    Nov 29 at 15:06












  • Funny, I would expect this to be documented, but neither man ls or info coreutils 'ls invocation' mention it.
    – wjandrea
    Nov 29 at 20:05














  • 1




    In Desktop Ubuntu, 1000 is usually the first user/group id that is created when installing. Maybe you removed that user, so that the system cannot get the name. But the files still have this ID. What is the output of id -u Or this is some custom/server installation ...
    – RoVo
    Nov 29 at 15:06












  • Funny, I would expect this to be documented, but neither man ls or info coreutils 'ls invocation' mention it.
    – wjandrea
    Nov 29 at 20:05








1




1




In Desktop Ubuntu, 1000 is usually the first user/group id that is created when installing. Maybe you removed that user, so that the system cannot get the name. But the files still have this ID. What is the output of id -u Or this is some custom/server installation ...
– RoVo
Nov 29 at 15:06






In Desktop Ubuntu, 1000 is usually the first user/group id that is created when installing. Maybe you removed that user, so that the system cannot get the name. But the files still have this ID. What is the output of id -u Or this is some custom/server installation ...
– RoVo
Nov 29 at 15:06














Funny, I would expect this to be documented, but neither man ls or info coreutils 'ls invocation' mention it.
– wjandrea
Nov 29 at 20:05




Funny, I would expect this to be documented, but neither man ls or info coreutils 'ls invocation' mention it.
– wjandrea
Nov 29 at 20:05










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










The ls command tries to print the user name and group name when doing the long listing. However, the user and group are stored as the UID and GID in the file's metadata. If the UID cannot be looked up or the GID cannot be looked up, the ls -l command will just print out the UID and/or GID. That is what you are seeing. The file, "shared.md" is owned by UID 1000 and GID 1000, but there is no user on the system that has UID 1000, and no group on the system that has GID 1000. That is why ls -l prints out 1000 for the user and group.



For the file, "locknoblank.sh" the owner is greedy, but the group is GID 1000, for the same reason as above.






share|improve this answer






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    The ls command tries to print the user name and group name when doing the long listing. However, the user and group are stored as the UID and GID in the file's metadata. If the UID cannot be looked up or the GID cannot be looked up, the ls -l command will just print out the UID and/or GID. That is what you are seeing. The file, "shared.md" is owned by UID 1000 and GID 1000, but there is no user on the system that has UID 1000, and no group on the system that has GID 1000. That is why ls -l prints out 1000 for the user and group.



    For the file, "locknoblank.sh" the owner is greedy, but the group is GID 1000, for the same reason as above.






    share|improve this answer



























      up vote
      1
      down vote



      accepted










      The ls command tries to print the user name and group name when doing the long listing. However, the user and group are stored as the UID and GID in the file's metadata. If the UID cannot be looked up or the GID cannot be looked up, the ls -l command will just print out the UID and/or GID. That is what you are seeing. The file, "shared.md" is owned by UID 1000 and GID 1000, but there is no user on the system that has UID 1000, and no group on the system that has GID 1000. That is why ls -l prints out 1000 for the user and group.



      For the file, "locknoblank.sh" the owner is greedy, but the group is GID 1000, for the same reason as above.






      share|improve this answer

























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        The ls command tries to print the user name and group name when doing the long listing. However, the user and group are stored as the UID and GID in the file's metadata. If the UID cannot be looked up or the GID cannot be looked up, the ls -l command will just print out the UID and/or GID. That is what you are seeing. The file, "shared.md" is owned by UID 1000 and GID 1000, but there is no user on the system that has UID 1000, and no group on the system that has GID 1000. That is why ls -l prints out 1000 for the user and group.



        For the file, "locknoblank.sh" the owner is greedy, but the group is GID 1000, for the same reason as above.






        share|improve this answer














        The ls command tries to print the user name and group name when doing the long listing. However, the user and group are stored as the UID and GID in the file's metadata. If the UID cannot be looked up or the GID cannot be looked up, the ls -l command will just print out the UID and/or GID. That is what you are seeing. The file, "shared.md" is owned by UID 1000 and GID 1000, but there is no user on the system that has UID 1000, and no group on the system that has GID 1000. That is why ls -l prints out 1000 for the user and group.



        For the file, "locknoblank.sh" the owner is greedy, but the group is GID 1000, for the same reason as above.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 29 at 19:53









        wjandrea

        8,06142258




        8,06142258










        answered Nov 29 at 15:03









        Lewis M

        4955




        4955















            Popular posts from this blog

            Quarter-circle Tiles

            build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

            Mont Emei