ps command shows user id and not user name
Clash Royale CLAN TAG#URR8PPP
With Centos 6.6, when I run ps
command, the first column is User ID and not user name.
root@cluster:mahmood# ps aux | grep Xvnc
506 11881 0.6 0.1 168580 63164 ? S Jun03 24:56 /usr/bin/Xvnc :6 -desktop cluster.hpc.org:6 (haghsheno) -auth /home/mahmood/.Xauthority -geometry 1000x900 -rfbwait 30000 -rfbauth /home/mahmood/.vnc/passwd -rfbport 5906 -fp catalogue:/etc/X11/fontpath.d -pn
Why such thing happens? and how can I change that to user name?
centos users ps
add a comment |
With Centos 6.6, when I run ps
command, the first column is User ID and not user name.
root@cluster:mahmood# ps aux | grep Xvnc
506 11881 0.6 0.1 168580 63164 ? S Jun03 24:56 /usr/bin/Xvnc :6 -desktop cluster.hpc.org:6 (haghsheno) -auth /home/mahmood/.Xauthority -geometry 1000x900 -rfbwait 30000 -rfbauth /home/mahmood/.vnc/passwd -rfbport 5906 -fp catalogue:/etc/X11/fontpath.d -pn
Why such thing happens? and how can I change that to user name?
centos users ps
2
Is answerd hier why unix.stackexchange.com/questions/363910/…
– user192526
Jun 6 '17 at 14:01
1
Does it show the numeric UID for processes of all users, or just some? Dogetent passwd 506
andgetent passwd $username
work? (I thinkgetent
should lookup by number on CentOS)
– ilkkachu
Jun 6 '17 at 14:19
It shows for some users. As pointed by Bahamut, it seems that the user name length is important!
– mahmood
Jun 6 '17 at 14:21
or maybe you have a numeric username: unix.stackexchange.com/questions/287077/…
– Jeff Schaller
Jun 6 '17 at 15:09
add a comment |
With Centos 6.6, when I run ps
command, the first column is User ID and not user name.
root@cluster:mahmood# ps aux | grep Xvnc
506 11881 0.6 0.1 168580 63164 ? S Jun03 24:56 /usr/bin/Xvnc :6 -desktop cluster.hpc.org:6 (haghsheno) -auth /home/mahmood/.Xauthority -geometry 1000x900 -rfbwait 30000 -rfbauth /home/mahmood/.vnc/passwd -rfbport 5906 -fp catalogue:/etc/X11/fontpath.d -pn
Why such thing happens? and how can I change that to user name?
centos users ps
With Centos 6.6, when I run ps
command, the first column is User ID and not user name.
root@cluster:mahmood# ps aux | grep Xvnc
506 11881 0.6 0.1 168580 63164 ? S Jun03 24:56 /usr/bin/Xvnc :6 -desktop cluster.hpc.org:6 (haghsheno) -auth /home/mahmood/.Xauthority -geometry 1000x900 -rfbwait 30000 -rfbauth /home/mahmood/.vnc/passwd -rfbport 5906 -fp catalogue:/etc/X11/fontpath.d -pn
Why such thing happens? and how can I change that to user name?
centos users ps
centos users ps
edited Jun 6 '17 at 15:05
Jeff Schaller
41.4k1056131
41.4k1056131
asked Jun 6 '17 at 13:59
mahmoodmahmood
3651721
3651721
2
Is answerd hier why unix.stackexchange.com/questions/363910/…
– user192526
Jun 6 '17 at 14:01
1
Does it show the numeric UID for processes of all users, or just some? Dogetent passwd 506
andgetent passwd $username
work? (I thinkgetent
should lookup by number on CentOS)
– ilkkachu
Jun 6 '17 at 14:19
It shows for some users. As pointed by Bahamut, it seems that the user name length is important!
– mahmood
Jun 6 '17 at 14:21
or maybe you have a numeric username: unix.stackexchange.com/questions/287077/…
– Jeff Schaller
Jun 6 '17 at 15:09
add a comment |
2
Is answerd hier why unix.stackexchange.com/questions/363910/…
– user192526
Jun 6 '17 at 14:01
1
Does it show the numeric UID for processes of all users, or just some? Dogetent passwd 506
andgetent passwd $username
work? (I thinkgetent
should lookup by number on CentOS)
– ilkkachu
Jun 6 '17 at 14:19
It shows for some users. As pointed by Bahamut, it seems that the user name length is important!
– mahmood
Jun 6 '17 at 14:21
or maybe you have a numeric username: unix.stackexchange.com/questions/287077/…
– Jeff Schaller
Jun 6 '17 at 15:09
2
2
Is answerd hier why unix.stackexchange.com/questions/363910/…
– user192526
Jun 6 '17 at 14:01
Is answerd hier why unix.stackexchange.com/questions/363910/…
– user192526
Jun 6 '17 at 14:01
1
1
Does it show the numeric UID for processes of all users, or just some? Do
getent passwd 506
and getent passwd $username
work? (I think getent
should lookup by number on CentOS)– ilkkachu
Jun 6 '17 at 14:19
Does it show the numeric UID for processes of all users, or just some? Do
getent passwd 506
and getent passwd $username
work? (I think getent
should lookup by number on CentOS)– ilkkachu
Jun 6 '17 at 14:19
It shows for some users. As pointed by Bahamut, it seems that the user name length is important!
– mahmood
Jun 6 '17 at 14:21
It shows for some users. As pointed by Bahamut, it seems that the user name length is important!
– mahmood
Jun 6 '17 at 14:21
or maybe you have a numeric username: unix.stackexchange.com/questions/287077/…
– Jeff Schaller
Jun 6 '17 at 15:09
or maybe you have a numeric username: unix.stackexchange.com/questions/287077/…
– Jeff Schaller
Jun 6 '17 at 15:09
add a comment |
2 Answers
2
active
oldest
votes
If the id is not inside passwd (grep 506 /etc/passwd
) there is no username to display.
In this case add an corresponding entry inside /etc/passwd
.
EDIT
As mentioned by Jeff Schaller and KevinO:
This answer isn't quite complete! It's better to locate these lines from /etc/passwd, whose third field ($3
, separated by colon -F:
) contains exactly the value of 506
. See first comment from Jeff. My simple example above would show lines containing username yx506, id 123506, and so on.
But anyway: if the userid is missing inside /etc/passwd
, this answer could be a solution.
I'll try to be more concrete in future ...
orawk -F: '$3 == 506' /etc/passwd
orgetent passwd | awk -F: '$3 == 506'
– Jeff Schaller
Jun 6 '17 at 15:08
Yes, my example could result in more than just one line. Wanted to keep it simple ... ;) Thanks anyway!
– ChristophS
Jun 6 '17 at 15:12
This answer isn't quite complete, as an entry may be in/etc/passwd
but still not display the textual user name. As an example, I have fromps -ef
a line of :68 1964 1 0 May17 ? 00:00:30 hald
(so it is showing the numeric id; most other lines have "root" or "apache" showing), butgrep 68 /etc/passwd
giveshaldaemon:x:68:68:HAL daemon:/:/sbin/nologin
.
– KevinO
Jun 6 '17 at 15:16
userid 1506, username tax506, gid 5061, etc etc etc
– Jeff Schaller
Jun 6 '17 at 15:19
@Jeff/Kevin: I hope the edit is acceptable for you ...
– ChristophS
Jun 6 '17 at 15:33
|
show 2 more comments
Unfortunately the default ps does not display a username if the username is longer than 8 chars. If your system is running sssd with LDAP you can use "getent passwd userid" to find the user if they are in the LDAP database or the password file. My username "tvb" almost always shows up. However the username "flonglastname" would not in most cases. Other commands like "w" will show the first 8 chars "flonglas" and truncate the remaining. In the example by @KevinO above, "haldaemon" is 9 chars so that's why it doesn't appear in ps as a username, but a userid instead.
% getent passwd haldaemon
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
Also, the answer at blog.dbi-services.com helps with a way to specify the field length of the username field even in BSD format ps output. Simplifying their suggestion a little gives:
env PS_FORMAT='user:12,pid,%cpu,%mem,vsz,rss,tty,stat,start,time,command' ps ax | grep haldaemon
haldaemon 2032 0.0 0.0 53100 2020 ? Ssl Aug 12 00:01:10 hald
Which provides the desired output.
You know that you don’t need to useenv
to run a command with a customized environment, right?
– G-Man
Jan 25 at 22:51
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
);
);
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%2funix.stackexchange.com%2fquestions%2f369515%2fps-command-shows-user-id-and-not-user-name%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
If the id is not inside passwd (grep 506 /etc/passwd
) there is no username to display.
In this case add an corresponding entry inside /etc/passwd
.
EDIT
As mentioned by Jeff Schaller and KevinO:
This answer isn't quite complete! It's better to locate these lines from /etc/passwd, whose third field ($3
, separated by colon -F:
) contains exactly the value of 506
. See first comment from Jeff. My simple example above would show lines containing username yx506, id 123506, and so on.
But anyway: if the userid is missing inside /etc/passwd
, this answer could be a solution.
I'll try to be more concrete in future ...
orawk -F: '$3 == 506' /etc/passwd
orgetent passwd | awk -F: '$3 == 506'
– Jeff Schaller
Jun 6 '17 at 15:08
Yes, my example could result in more than just one line. Wanted to keep it simple ... ;) Thanks anyway!
– ChristophS
Jun 6 '17 at 15:12
This answer isn't quite complete, as an entry may be in/etc/passwd
but still not display the textual user name. As an example, I have fromps -ef
a line of :68 1964 1 0 May17 ? 00:00:30 hald
(so it is showing the numeric id; most other lines have "root" or "apache" showing), butgrep 68 /etc/passwd
giveshaldaemon:x:68:68:HAL daemon:/:/sbin/nologin
.
– KevinO
Jun 6 '17 at 15:16
userid 1506, username tax506, gid 5061, etc etc etc
– Jeff Schaller
Jun 6 '17 at 15:19
@Jeff/Kevin: I hope the edit is acceptable for you ...
– ChristophS
Jun 6 '17 at 15:33
|
show 2 more comments
If the id is not inside passwd (grep 506 /etc/passwd
) there is no username to display.
In this case add an corresponding entry inside /etc/passwd
.
EDIT
As mentioned by Jeff Schaller and KevinO:
This answer isn't quite complete! It's better to locate these lines from /etc/passwd, whose third field ($3
, separated by colon -F:
) contains exactly the value of 506
. See first comment from Jeff. My simple example above would show lines containing username yx506, id 123506, and so on.
But anyway: if the userid is missing inside /etc/passwd
, this answer could be a solution.
I'll try to be more concrete in future ...
orawk -F: '$3 == 506' /etc/passwd
orgetent passwd | awk -F: '$3 == 506'
– Jeff Schaller
Jun 6 '17 at 15:08
Yes, my example could result in more than just one line. Wanted to keep it simple ... ;) Thanks anyway!
– ChristophS
Jun 6 '17 at 15:12
This answer isn't quite complete, as an entry may be in/etc/passwd
but still not display the textual user name. As an example, I have fromps -ef
a line of :68 1964 1 0 May17 ? 00:00:30 hald
(so it is showing the numeric id; most other lines have "root" or "apache" showing), butgrep 68 /etc/passwd
giveshaldaemon:x:68:68:HAL daemon:/:/sbin/nologin
.
– KevinO
Jun 6 '17 at 15:16
userid 1506, username tax506, gid 5061, etc etc etc
– Jeff Schaller
Jun 6 '17 at 15:19
@Jeff/Kevin: I hope the edit is acceptable for you ...
– ChristophS
Jun 6 '17 at 15:33
|
show 2 more comments
If the id is not inside passwd (grep 506 /etc/passwd
) there is no username to display.
In this case add an corresponding entry inside /etc/passwd
.
EDIT
As mentioned by Jeff Schaller and KevinO:
This answer isn't quite complete! It's better to locate these lines from /etc/passwd, whose third field ($3
, separated by colon -F:
) contains exactly the value of 506
. See first comment from Jeff. My simple example above would show lines containing username yx506, id 123506, and so on.
But anyway: if the userid is missing inside /etc/passwd
, this answer could be a solution.
I'll try to be more concrete in future ...
If the id is not inside passwd (grep 506 /etc/passwd
) there is no username to display.
In this case add an corresponding entry inside /etc/passwd
.
EDIT
As mentioned by Jeff Schaller and KevinO:
This answer isn't quite complete! It's better to locate these lines from /etc/passwd, whose third field ($3
, separated by colon -F:
) contains exactly the value of 506
. See first comment from Jeff. My simple example above would show lines containing username yx506, id 123506, and so on.
But anyway: if the userid is missing inside /etc/passwd
, this answer could be a solution.
I'll try to be more concrete in future ...
edited Jun 6 '17 at 15:35
Jeff Schaller
41.4k1056131
41.4k1056131
answered Jun 6 '17 at 14:10
ChristophSChristophS
40329
40329
orawk -F: '$3 == 506' /etc/passwd
orgetent passwd | awk -F: '$3 == 506'
– Jeff Schaller
Jun 6 '17 at 15:08
Yes, my example could result in more than just one line. Wanted to keep it simple ... ;) Thanks anyway!
– ChristophS
Jun 6 '17 at 15:12
This answer isn't quite complete, as an entry may be in/etc/passwd
but still not display the textual user name. As an example, I have fromps -ef
a line of :68 1964 1 0 May17 ? 00:00:30 hald
(so it is showing the numeric id; most other lines have "root" or "apache" showing), butgrep 68 /etc/passwd
giveshaldaemon:x:68:68:HAL daemon:/:/sbin/nologin
.
– KevinO
Jun 6 '17 at 15:16
userid 1506, username tax506, gid 5061, etc etc etc
– Jeff Schaller
Jun 6 '17 at 15:19
@Jeff/Kevin: I hope the edit is acceptable for you ...
– ChristophS
Jun 6 '17 at 15:33
|
show 2 more comments
orawk -F: '$3 == 506' /etc/passwd
orgetent passwd | awk -F: '$3 == 506'
– Jeff Schaller
Jun 6 '17 at 15:08
Yes, my example could result in more than just one line. Wanted to keep it simple ... ;) Thanks anyway!
– ChristophS
Jun 6 '17 at 15:12
This answer isn't quite complete, as an entry may be in/etc/passwd
but still not display the textual user name. As an example, I have fromps -ef
a line of :68 1964 1 0 May17 ? 00:00:30 hald
(so it is showing the numeric id; most other lines have "root" or "apache" showing), butgrep 68 /etc/passwd
giveshaldaemon:x:68:68:HAL daemon:/:/sbin/nologin
.
– KevinO
Jun 6 '17 at 15:16
userid 1506, username tax506, gid 5061, etc etc etc
– Jeff Schaller
Jun 6 '17 at 15:19
@Jeff/Kevin: I hope the edit is acceptable for you ...
– ChristophS
Jun 6 '17 at 15:33
or
awk -F: '$3 == 506' /etc/passwd
or getent passwd | awk -F: '$3 == 506'
– Jeff Schaller
Jun 6 '17 at 15:08
or
awk -F: '$3 == 506' /etc/passwd
or getent passwd | awk -F: '$3 == 506'
– Jeff Schaller
Jun 6 '17 at 15:08
Yes, my example could result in more than just one line. Wanted to keep it simple ... ;) Thanks anyway!
– ChristophS
Jun 6 '17 at 15:12
Yes, my example could result in more than just one line. Wanted to keep it simple ... ;) Thanks anyway!
– ChristophS
Jun 6 '17 at 15:12
This answer isn't quite complete, as an entry may be in
/etc/passwd
but still not display the textual user name. As an example, I have from ps -ef
a line of :68 1964 1 0 May17 ? 00:00:30 hald
(so it is showing the numeric id; most other lines have "root" or "apache" showing), but grep 68 /etc/passwd
gives haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
.– KevinO
Jun 6 '17 at 15:16
This answer isn't quite complete, as an entry may be in
/etc/passwd
but still not display the textual user name. As an example, I have from ps -ef
a line of :68 1964 1 0 May17 ? 00:00:30 hald
(so it is showing the numeric id; most other lines have "root" or "apache" showing), but grep 68 /etc/passwd
gives haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
.– KevinO
Jun 6 '17 at 15:16
userid 1506, username tax506, gid 5061, etc etc etc
– Jeff Schaller
Jun 6 '17 at 15:19
userid 1506, username tax506, gid 5061, etc etc etc
– Jeff Schaller
Jun 6 '17 at 15:19
@Jeff/Kevin: I hope the edit is acceptable for you ...
– ChristophS
Jun 6 '17 at 15:33
@Jeff/Kevin: I hope the edit is acceptable for you ...
– ChristophS
Jun 6 '17 at 15:33
|
show 2 more comments
Unfortunately the default ps does not display a username if the username is longer than 8 chars. If your system is running sssd with LDAP you can use "getent passwd userid" to find the user if they are in the LDAP database or the password file. My username "tvb" almost always shows up. However the username "flonglastname" would not in most cases. Other commands like "w" will show the first 8 chars "flonglas" and truncate the remaining. In the example by @KevinO above, "haldaemon" is 9 chars so that's why it doesn't appear in ps as a username, but a userid instead.
% getent passwd haldaemon
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
Also, the answer at blog.dbi-services.com helps with a way to specify the field length of the username field even in BSD format ps output. Simplifying their suggestion a little gives:
env PS_FORMAT='user:12,pid,%cpu,%mem,vsz,rss,tty,stat,start,time,command' ps ax | grep haldaemon
haldaemon 2032 0.0 0.0 53100 2020 ? Ssl Aug 12 00:01:10 hald
Which provides the desired output.
You know that you don’t need to useenv
to run a command with a customized environment, right?
– G-Man
Jan 25 at 22:51
add a comment |
Unfortunately the default ps does not display a username if the username is longer than 8 chars. If your system is running sssd with LDAP you can use "getent passwd userid" to find the user if they are in the LDAP database or the password file. My username "tvb" almost always shows up. However the username "flonglastname" would not in most cases. Other commands like "w" will show the first 8 chars "flonglas" and truncate the remaining. In the example by @KevinO above, "haldaemon" is 9 chars so that's why it doesn't appear in ps as a username, but a userid instead.
% getent passwd haldaemon
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
Also, the answer at blog.dbi-services.com helps with a way to specify the field length of the username field even in BSD format ps output. Simplifying their suggestion a little gives:
env PS_FORMAT='user:12,pid,%cpu,%mem,vsz,rss,tty,stat,start,time,command' ps ax | grep haldaemon
haldaemon 2032 0.0 0.0 53100 2020 ? Ssl Aug 12 00:01:10 hald
Which provides the desired output.
You know that you don’t need to useenv
to run a command with a customized environment, right?
– G-Man
Jan 25 at 22:51
add a comment |
Unfortunately the default ps does not display a username if the username is longer than 8 chars. If your system is running sssd with LDAP you can use "getent passwd userid" to find the user if they are in the LDAP database or the password file. My username "tvb" almost always shows up. However the username "flonglastname" would not in most cases. Other commands like "w" will show the first 8 chars "flonglas" and truncate the remaining. In the example by @KevinO above, "haldaemon" is 9 chars so that's why it doesn't appear in ps as a username, but a userid instead.
% getent passwd haldaemon
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
Also, the answer at blog.dbi-services.com helps with a way to specify the field length of the username field even in BSD format ps output. Simplifying their suggestion a little gives:
env PS_FORMAT='user:12,pid,%cpu,%mem,vsz,rss,tty,stat,start,time,command' ps ax | grep haldaemon
haldaemon 2032 0.0 0.0 53100 2020 ? Ssl Aug 12 00:01:10 hald
Which provides the desired output.
Unfortunately the default ps does not display a username if the username is longer than 8 chars. If your system is running sssd with LDAP you can use "getent passwd userid" to find the user if they are in the LDAP database or the password file. My username "tvb" almost always shows up. However the username "flonglastname" would not in most cases. Other commands like "w" will show the first 8 chars "flonglas" and truncate the remaining. In the example by @KevinO above, "haldaemon" is 9 chars so that's why it doesn't appear in ps as a username, but a userid instead.
% getent passwd haldaemon
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
Also, the answer at blog.dbi-services.com helps with a way to specify the field length of the username field even in BSD format ps output. Simplifying their suggestion a little gives:
env PS_FORMAT='user:12,pid,%cpu,%mem,vsz,rss,tty,stat,start,time,command' ps ax | grep haldaemon
haldaemon 2032 0.0 0.0 53100 2020 ? Ssl Aug 12 00:01:10 hald
Which provides the desired output.
edited Jan 25 at 22:36
answered Jan 25 at 21:57
The Veritable BugeaterThe Veritable Bugeater
11
11
You know that you don’t need to useenv
to run a command with a customized environment, right?
– G-Man
Jan 25 at 22:51
add a comment |
You know that you don’t need to useenv
to run a command with a customized environment, right?
– G-Man
Jan 25 at 22:51
You know that you don’t need to use
env
to run a command with a customized environment, right?– G-Man
Jan 25 at 22:51
You know that you don’t need to use
env
to run a command with a customized environment, right?– G-Man
Jan 25 at 22:51
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f369515%2fps-command-shows-user-id-and-not-user-name%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
2
Is answerd hier why unix.stackexchange.com/questions/363910/…
– user192526
Jun 6 '17 at 14:01
1
Does it show the numeric UID for processes of all users, or just some? Do
getent passwd 506
andgetent passwd $username
work? (I thinkgetent
should lookup by number on CentOS)– ilkkachu
Jun 6 '17 at 14:19
It shows for some users. As pointed by Bahamut, it seems that the user name length is important!
– mahmood
Jun 6 '17 at 14:21
or maybe you have a numeric username: unix.stackexchange.com/questions/287077/…
– Jeff Schaller
Jun 6 '17 at 15:09