How to retrieve information of a user?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












After running below commands,



[root@u87 ~]# getent group somegroup
somegroup:*:2441:someuser
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# cat /etc/group | grep somegroup
[root@u87 ~]#
[root@u87 ~]# cat /etc/passwd | grep someuser
[root@u87 ~]#
[root@u87 ~]# getent passwd | grep someuser
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# sudo su - someuser
su: user someuser does not exist
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# cat /etc/system-release
Red Hat Enterprise Linux Server release 7.5 (Maipo



I would like to know,



1) How to retrieve information about someuser? basically information like uid



2) Why sudo su - someuser does not work? despite someuser exist in some DB










share|improve this question























  • Do you have a user named someuser? What does getent passwd someuser say?
    – Andy Dalton
    Sep 19 at 15:36











  • Related: unix.stackexchange.com/a/353975/117549
    – Jeff Schaller
    Sep 19 at 15:46










  • @AndyDalton getent passwd someuser gives no output but why getent group somegroup has member user someuser as mentioned in somegroup:*:2441:someuser?
    – overexchange
    Sep 19 at 16:24







  • 2




    Was the group database not updated when the user was removed from the system? Do you have historical records showing that this user actually existed at some point in time?
    – Kusalananda
    Sep 19 at 16:36














up vote
0
down vote

favorite












After running below commands,



[root@u87 ~]# getent group somegroup
somegroup:*:2441:someuser
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# cat /etc/group | grep somegroup
[root@u87 ~]#
[root@u87 ~]# cat /etc/passwd | grep someuser
[root@u87 ~]#
[root@u87 ~]# getent passwd | grep someuser
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# sudo su - someuser
su: user someuser does not exist
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# cat /etc/system-release
Red Hat Enterprise Linux Server release 7.5 (Maipo



I would like to know,



1) How to retrieve information about someuser? basically information like uid



2) Why sudo su - someuser does not work? despite someuser exist in some DB










share|improve this question























  • Do you have a user named someuser? What does getent passwd someuser say?
    – Andy Dalton
    Sep 19 at 15:36











  • Related: unix.stackexchange.com/a/353975/117549
    – Jeff Schaller
    Sep 19 at 15:46










  • @AndyDalton getent passwd someuser gives no output but why getent group somegroup has member user someuser as mentioned in somegroup:*:2441:someuser?
    – overexchange
    Sep 19 at 16:24







  • 2




    Was the group database not updated when the user was removed from the system? Do you have historical records showing that this user actually existed at some point in time?
    – Kusalananda
    Sep 19 at 16:36












up vote
0
down vote

favorite









up vote
0
down vote

favorite











After running below commands,



[root@u87 ~]# getent group somegroup
somegroup:*:2441:someuser
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# cat /etc/group | grep somegroup
[root@u87 ~]#
[root@u87 ~]# cat /etc/passwd | grep someuser
[root@u87 ~]#
[root@u87 ~]# getent passwd | grep someuser
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# sudo su - someuser
su: user someuser does not exist
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# cat /etc/system-release
Red Hat Enterprise Linux Server release 7.5 (Maipo



I would like to know,



1) How to retrieve information about someuser? basically information like uid



2) Why sudo su - someuser does not work? despite someuser exist in some DB










share|improve this question















After running below commands,



[root@u87 ~]# getent group somegroup
somegroup:*:2441:someuser
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# cat /etc/group | grep somegroup
[root@u87 ~]#
[root@u87 ~]# cat /etc/passwd | grep someuser
[root@u87 ~]#
[root@u87 ~]# getent passwd | grep someuser
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# sudo su - someuser
su: user someuser does not exist
[root@u87 ~]#
[root@u87 ~]#
[root@u87 ~]# cat /etc/system-release
Red Hat Enterprise Linux Server release 7.5 (Maipo



I would like to know,



1) How to retrieve information about someuser? basically information like uid



2) Why sudo su - someuser does not work? despite someuser exist in some DB







sudo users group






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 19 at 16:33









terdon♦

124k29234408




124k29234408










asked Sep 19 at 15:28









overexchange

312212




312212











  • Do you have a user named someuser? What does getent passwd someuser say?
    – Andy Dalton
    Sep 19 at 15:36











  • Related: unix.stackexchange.com/a/353975/117549
    – Jeff Schaller
    Sep 19 at 15:46










  • @AndyDalton getent passwd someuser gives no output but why getent group somegroup has member user someuser as mentioned in somegroup:*:2441:someuser?
    – overexchange
    Sep 19 at 16:24







  • 2




    Was the group database not updated when the user was removed from the system? Do you have historical records showing that this user actually existed at some point in time?
    – Kusalananda
    Sep 19 at 16:36
















  • Do you have a user named someuser? What does getent passwd someuser say?
    – Andy Dalton
    Sep 19 at 15:36











  • Related: unix.stackexchange.com/a/353975/117549
    – Jeff Schaller
    Sep 19 at 15:46










  • @AndyDalton getent passwd someuser gives no output but why getent group somegroup has member user someuser as mentioned in somegroup:*:2441:someuser?
    – overexchange
    Sep 19 at 16:24







  • 2




    Was the group database not updated when the user was removed from the system? Do you have historical records showing that this user actually existed at some point in time?
    – Kusalananda
    Sep 19 at 16:36















Do you have a user named someuser? What does getent passwd someuser say?
– Andy Dalton
Sep 19 at 15:36





Do you have a user named someuser? What does getent passwd someuser say?
– Andy Dalton
Sep 19 at 15:36













Related: unix.stackexchange.com/a/353975/117549
– Jeff Schaller
Sep 19 at 15:46




Related: unix.stackexchange.com/a/353975/117549
– Jeff Schaller
Sep 19 at 15:46












@AndyDalton getent passwd someuser gives no output but why getent group somegroup has member user someuser as mentioned in somegroup:*:2441:someuser?
– overexchange
Sep 19 at 16:24





@AndyDalton getent passwd someuser gives no output but why getent group somegroup has member user someuser as mentioned in somegroup:*:2441:someuser?
– overexchange
Sep 19 at 16:24





2




2




Was the group database not updated when the user was removed from the system? Do you have historical records showing that this user actually existed at some point in time?
– Kusalananda
Sep 19 at 16:36




Was the group database not updated when the user was removed from the system? Do you have historical records showing that this user actually existed at some point in time?
– Kusalananda
Sep 19 at 16:36















active

oldest

votes











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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f470050%2fhow-to-retrieve-information-of-a-user%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f470050%2fhow-to-retrieve-information-of-a-user%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?