How to retrieve information of a user?
Clash 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
sudo users group
add a comment |Â
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
sudo users group
Do you have a user namedsomeuser
? What doesgetent passwd someuser
say?
â Andy Dalton
Sep 19 at 15:36
Related: unix.stackexchange.com/a/353975/117549
â Jeff Schaller
Sep 19 at 15:46
@AndyDaltongetent passwd someuser
gives no output but whygetent group somegroup
has member usersomeuser
as mentioned insomegroup:*: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
add a comment |Â
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
sudo users group
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
sudo users group
edited Sep 19 at 16:33
terdonâ¦
124k29234408
124k29234408
asked Sep 19 at 15:28
overexchange
312212
312212
Do you have a user namedsomeuser
? What doesgetent passwd someuser
say?
â Andy Dalton
Sep 19 at 15:36
Related: unix.stackexchange.com/a/353975/117549
â Jeff Schaller
Sep 19 at 15:46
@AndyDaltongetent passwd someuser
gives no output but whygetent group somegroup
has member usersomeuser
as mentioned insomegroup:*: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
add a comment |Â
Do you have a user namedsomeuser
? What doesgetent passwd someuser
say?
â Andy Dalton
Sep 19 at 15:36
Related: unix.stackexchange.com/a/353975/117549
â Jeff Schaller
Sep 19 at 15:46
@AndyDaltongetent passwd someuser
gives no output but whygetent group somegroup
has member usersomeuser
as mentioned insomegroup:*: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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
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
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
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
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
Do you have a user named
someuser
? What doesgetent 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 whygetent group somegroup
has member usersomeuser
as mentioned insomegroup:*: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