can't find my user name in /etc/passwd nor name of my initial group in /etc/group
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
Here is what i get:
[zehu@danville ~]$ groups
apl vboxusers
[zehu@danville ~]$
[zehu@danville ~]$ grep zehu /etc/passwd
[zehu@danville ~]$
[zehu@danville ~]$ grep apl /etc/group
[zehu@danville ~]$
[zehu@danville ~]$ grep vboxusers /etc/group
vboxusers:x:1540:zehu
[zehu@danville ~]$
Could anyone tell me if that's normal or not? and why is that? Thanks for help!
[zehu@danville ~]$ sudo grep zehu /etc/shadow
[zehu@danville ~]$
[zehu@danville ~]$ id
uid=1580(zehu) gid=1100(apl) groups=1100(apl),1540(vboxusers)
[zehu@danville ~]$ getent group apl
apl:x:1100:
[zehu@danville ~]$ ypcat passwd | grep zehu
zehu:beL3WqT.4rb5Y:1580:1100:Zeyu Hu:/home/zehu:/bin/tcsh
users account-restrictions nsswitch
|
show 2 more comments
up vote
2
down vote
favorite
Here is what i get:
[zehu@danville ~]$ groups
apl vboxusers
[zehu@danville ~]$
[zehu@danville ~]$ grep zehu /etc/passwd
[zehu@danville ~]$
[zehu@danville ~]$ grep apl /etc/group
[zehu@danville ~]$
[zehu@danville ~]$ grep vboxusers /etc/group
vboxusers:x:1540:zehu
[zehu@danville ~]$
Could anyone tell me if that's normal or not? and why is that? Thanks for help!
[zehu@danville ~]$ sudo grep zehu /etc/shadow
[zehu@danville ~]$
[zehu@danville ~]$ id
uid=1580(zehu) gid=1100(apl) groups=1100(apl),1540(vboxusers)
[zehu@danville ~]$ getent group apl
apl:x:1100:
[zehu@danville ~]$ ypcat passwd | grep zehu
zehu:beL3WqT.4rb5Y:1580:1100:Zeyu Hu:/home/zehu:/bin/tcsh
users account-restrictions nsswitch
I don't think it's normal. what about/etc/shadow
? Please report the output ofid
,whoami
. How did you login?
– Sebastian
Sep 25 '14 at 7:29
Doesgetent group apl
output anything?
– Mark Plotnick
Sep 25 '14 at 7:37
nis (former yellow page) might be in use, do you have a + (plus sign) in /etc/passwd ? LDAP might be in use also (though I don't know how to check)
– Archemar
Sep 25 '14 at 7:44
1
then tryypcat passwd | grep zehu
– Archemar
Sep 25 '14 at 8:28
3
Look at/etc/nsswitch.conf
. Your system could be set up to use any or all of: local files, NIS, or LDAP.docs.oracle.com/cd/E19455-01/806-1386/6jam5ahkg/index.html
– Mark Plotnick
Sep 26 '14 at 2:35
|
show 2 more comments
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Here is what i get:
[zehu@danville ~]$ groups
apl vboxusers
[zehu@danville ~]$
[zehu@danville ~]$ grep zehu /etc/passwd
[zehu@danville ~]$
[zehu@danville ~]$ grep apl /etc/group
[zehu@danville ~]$
[zehu@danville ~]$ grep vboxusers /etc/group
vboxusers:x:1540:zehu
[zehu@danville ~]$
Could anyone tell me if that's normal or not? and why is that? Thanks for help!
[zehu@danville ~]$ sudo grep zehu /etc/shadow
[zehu@danville ~]$
[zehu@danville ~]$ id
uid=1580(zehu) gid=1100(apl) groups=1100(apl),1540(vboxusers)
[zehu@danville ~]$ getent group apl
apl:x:1100:
[zehu@danville ~]$ ypcat passwd | grep zehu
zehu:beL3WqT.4rb5Y:1580:1100:Zeyu Hu:/home/zehu:/bin/tcsh
users account-restrictions nsswitch
Here is what i get:
[zehu@danville ~]$ groups
apl vboxusers
[zehu@danville ~]$
[zehu@danville ~]$ grep zehu /etc/passwd
[zehu@danville ~]$
[zehu@danville ~]$ grep apl /etc/group
[zehu@danville ~]$
[zehu@danville ~]$ grep vboxusers /etc/group
vboxusers:x:1540:zehu
[zehu@danville ~]$
Could anyone tell me if that's normal or not? and why is that? Thanks for help!
[zehu@danville ~]$ sudo grep zehu /etc/shadow
[zehu@danville ~]$
[zehu@danville ~]$ id
uid=1580(zehu) gid=1100(apl) groups=1100(apl),1540(vboxusers)
[zehu@danville ~]$ getent group apl
apl:x:1100:
[zehu@danville ~]$ ypcat passwd | grep zehu
zehu:beL3WqT.4rb5Y:1580:1100:Zeyu Hu:/home/zehu:/bin/tcsh
users account-restrictions nsswitch
users account-restrictions nsswitch
edited Feb 10 '16 at 21:45
sendmoreinfo
1,7391030
1,7391030
asked Sep 25 '14 at 7:26
dotlib
113
113
I don't think it's normal. what about/etc/shadow
? Please report the output ofid
,whoami
. How did you login?
– Sebastian
Sep 25 '14 at 7:29
Doesgetent group apl
output anything?
– Mark Plotnick
Sep 25 '14 at 7:37
nis (former yellow page) might be in use, do you have a + (plus sign) in /etc/passwd ? LDAP might be in use also (though I don't know how to check)
– Archemar
Sep 25 '14 at 7:44
1
then tryypcat passwd | grep zehu
– Archemar
Sep 25 '14 at 8:28
3
Look at/etc/nsswitch.conf
. Your system could be set up to use any or all of: local files, NIS, or LDAP.docs.oracle.com/cd/E19455-01/806-1386/6jam5ahkg/index.html
– Mark Plotnick
Sep 26 '14 at 2:35
|
show 2 more comments
I don't think it's normal. what about/etc/shadow
? Please report the output ofid
,whoami
. How did you login?
– Sebastian
Sep 25 '14 at 7:29
Doesgetent group apl
output anything?
– Mark Plotnick
Sep 25 '14 at 7:37
nis (former yellow page) might be in use, do you have a + (plus sign) in /etc/passwd ? LDAP might be in use also (though I don't know how to check)
– Archemar
Sep 25 '14 at 7:44
1
then tryypcat passwd | grep zehu
– Archemar
Sep 25 '14 at 8:28
3
Look at/etc/nsswitch.conf
. Your system could be set up to use any or all of: local files, NIS, or LDAP.docs.oracle.com/cd/E19455-01/806-1386/6jam5ahkg/index.html
– Mark Plotnick
Sep 26 '14 at 2:35
I don't think it's normal. what about
/etc/shadow
? Please report the output of id
, whoami
. How did you login?– Sebastian
Sep 25 '14 at 7:29
I don't think it's normal. what about
/etc/shadow
? Please report the output of id
, whoami
. How did you login?– Sebastian
Sep 25 '14 at 7:29
Does
getent group apl
output anything?– Mark Plotnick
Sep 25 '14 at 7:37
Does
getent group apl
output anything?– Mark Plotnick
Sep 25 '14 at 7:37
nis (former yellow page) might be in use, do you have a + (plus sign) in /etc/passwd ? LDAP might be in use also (though I don't know how to check)
– Archemar
Sep 25 '14 at 7:44
nis (former yellow page) might be in use, do you have a + (plus sign) in /etc/passwd ? LDAP might be in use also (though I don't know how to check)
– Archemar
Sep 25 '14 at 7:44
1
1
then try
ypcat passwd | grep zehu
– Archemar
Sep 25 '14 at 8:28
then try
ypcat passwd | grep zehu
– Archemar
Sep 25 '14 at 8:28
3
3
Look at
/etc/nsswitch.conf
. Your system could be set up to use any or all of: local files, NIS, or LDAP.docs.oracle.com/cd/E19455-01/806-1386/6jam5ahkg/index.html– Mark Plotnick
Sep 26 '14 at 2:35
Look at
/etc/nsswitch.conf
. Your system could be set up to use any or all of: local files, NIS, or LDAP.docs.oracle.com/cd/E19455-01/806-1386/6jam5ahkg/index.html– Mark Plotnick
Sep 26 '14 at 2:35
|
show 2 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
The system that you are using uses a directory service (examples of these are NIS, NIS+, and LDAP) for some users and groups, including yourself and your apl
group, rather than local entries in /etc/passwd
and /etc/group
.
This is common on systems where the users and groups are administered on a central machine. It makes it easier, from a system administration standpoint, to allow users to log in on any number of other machines (login nodes or compute cluster nodes) without having to manually update the required files on all machines whenever some user or group information changes.
The getent
utility may be used to get information about local users and groups and about users and groups served from a directory service.
To see your passwd
entry, use
getent passwd "$LOGNAME"
or
getent passwd "$( id -u )"
To see your group
entries, use
getent group $( id -G )
Change -G
to -g
to only get your primary group.
For more information, see
- The NIS article on Wikipedia
- The NIS+ article on Wikipedia
- The LDAP article on Wikipedia
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The system that you are using uses a directory service (examples of these are NIS, NIS+, and LDAP) for some users and groups, including yourself and your apl
group, rather than local entries in /etc/passwd
and /etc/group
.
This is common on systems where the users and groups are administered on a central machine. It makes it easier, from a system administration standpoint, to allow users to log in on any number of other machines (login nodes or compute cluster nodes) without having to manually update the required files on all machines whenever some user or group information changes.
The getent
utility may be used to get information about local users and groups and about users and groups served from a directory service.
To see your passwd
entry, use
getent passwd "$LOGNAME"
or
getent passwd "$( id -u )"
To see your group
entries, use
getent group $( id -G )
Change -G
to -g
to only get your primary group.
For more information, see
- The NIS article on Wikipedia
- The NIS+ article on Wikipedia
- The LDAP article on Wikipedia
add a comment |
up vote
0
down vote
The system that you are using uses a directory service (examples of these are NIS, NIS+, and LDAP) for some users and groups, including yourself and your apl
group, rather than local entries in /etc/passwd
and /etc/group
.
This is common on systems where the users and groups are administered on a central machine. It makes it easier, from a system administration standpoint, to allow users to log in on any number of other machines (login nodes or compute cluster nodes) without having to manually update the required files on all machines whenever some user or group information changes.
The getent
utility may be used to get information about local users and groups and about users and groups served from a directory service.
To see your passwd
entry, use
getent passwd "$LOGNAME"
or
getent passwd "$( id -u )"
To see your group
entries, use
getent group $( id -G )
Change -G
to -g
to only get your primary group.
For more information, see
- The NIS article on Wikipedia
- The NIS+ article on Wikipedia
- The LDAP article on Wikipedia
add a comment |
up vote
0
down vote
up vote
0
down vote
The system that you are using uses a directory service (examples of these are NIS, NIS+, and LDAP) for some users and groups, including yourself and your apl
group, rather than local entries in /etc/passwd
and /etc/group
.
This is common on systems where the users and groups are administered on a central machine. It makes it easier, from a system administration standpoint, to allow users to log in on any number of other machines (login nodes or compute cluster nodes) without having to manually update the required files on all machines whenever some user or group information changes.
The getent
utility may be used to get information about local users and groups and about users and groups served from a directory service.
To see your passwd
entry, use
getent passwd "$LOGNAME"
or
getent passwd "$( id -u )"
To see your group
entries, use
getent group $( id -G )
Change -G
to -g
to only get your primary group.
For more information, see
- The NIS article on Wikipedia
- The NIS+ article on Wikipedia
- The LDAP article on Wikipedia
The system that you are using uses a directory service (examples of these are NIS, NIS+, and LDAP) for some users and groups, including yourself and your apl
group, rather than local entries in /etc/passwd
and /etc/group
.
This is common on systems where the users and groups are administered on a central machine. It makes it easier, from a system administration standpoint, to allow users to log in on any number of other machines (login nodes or compute cluster nodes) without having to manually update the required files on all machines whenever some user or group information changes.
The getent
utility may be used to get information about local users and groups and about users and groups served from a directory service.
To see your passwd
entry, use
getent passwd "$LOGNAME"
or
getent passwd "$( id -u )"
To see your group
entries, use
getent group $( id -G )
Change -G
to -g
to only get your primary group.
For more information, see
- The NIS article on Wikipedia
- The NIS+ article on Wikipedia
- The LDAP article on Wikipedia
edited Nov 25 at 9:49
answered Nov 25 at 9:40
Kusalananda
118k16223361
118k16223361
add a comment |
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.
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%2funix.stackexchange.com%2fquestions%2f157404%2fcant-find-my-user-name-in-etc-passwd-nor-name-of-my-initial-group-in-etc-grou%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
I don't think it's normal. what about
/etc/shadow
? Please report the output ofid
,whoami
. How did you login?– Sebastian
Sep 25 '14 at 7:29
Does
getent group apl
output anything?– Mark Plotnick
Sep 25 '14 at 7:37
nis (former yellow page) might be in use, do you have a + (plus sign) in /etc/passwd ? LDAP might be in use also (though I don't know how to check)
– Archemar
Sep 25 '14 at 7:44
1
then try
ypcat passwd | grep zehu
– Archemar
Sep 25 '14 at 8:28
3
Look at
/etc/nsswitch.conf
. Your system could be set up to use any or all of: local files, NIS, or LDAP.docs.oracle.com/cd/E19455-01/806-1386/6jam5ahkg/index.html– Mark Plotnick
Sep 26 '14 at 2:35