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
?
user-management
add a comment |
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
?
user-management
add a comment |
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
?
user-management
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
user-management
edited Dec 23 '14 at 2:54
psusi
30.9k14986
30.9k14986
asked Dec 22 '14 at 22:49
rolzan
1813
1813
add a comment |
add a comment |
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?
add a comment |
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?
add a comment |
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?
add a comment |
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?
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?
edited Nov 29 at 20:10
wjandrea
8,06142258
8,06142258
answered Dec 22 '14 at 22:56
Enefbee
1161
1161
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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