can't find my user name in /etc/passwd nor name of my initial group in /etc/group

The name of the pictureThe name of the pictureThe name of the pictureClash 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









share|improve this question























  • 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










  • 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














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









share|improve this question























  • 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










  • 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












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









share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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










  • 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
















  • 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










  • 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















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










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





share|improve this answer






















    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: 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
    );



    );













    draft saved

    draft discarded


















    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

























    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





    share|improve this answer


























      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





      share|improve this answer
























        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





        share|improve this answer














        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






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 25 at 9:49

























        answered Nov 25 at 9:40









        Kusalananda

        118k16223361




        118k16223361



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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






            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?