Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, in the file nsswitch.conf what means the value 'compat' ? I checked the man pages but cannot find any definition or details about it. Eg. in my nsswitch.conf : ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2008
    Location
    Luxembourg
    Posts
    136

    Name Service Switch (file nsswitch.conf) : what is 'compat' for ?


    Hello,

    in the file nsswitch.conf what means the value 'compat' ?
    I checked the man pages but cannot find any definition or details about it.

    Eg. in my nsswitch.conf :

    passwd: compat
    group: compat


    Thanks.

    Bye,
    Bruno

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,755

  3. #3
    Linux Newbie
    Join Date
    Dec 2008
    Location
    Luxembourg
    Posts
    136
    (Dear HROAdmin26 : thanks for this useless and waste of time respond.)

    As previously introduced :

    in /etc/nsswitch.conf :

    passwd: compat
    group: compat

    what is the source of passwd and group ?
    files or dns or ?

    Bye.
    Bruno

  4. #4
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,755
    How do you get user and group information out of DNS? Do you have any clue what you are even asking?

    Linux libc5 without NYS does not have the name service switch but does allow the user some policy control. In /etc/passwd you could have entries of the form +user or +@netgroup (include the specified user from the NIS passwd map), -user or -@netgroup (exclude the specified user), and + (include every user, except the excluded ones, from the NIS passwd map). Since most people only put a + at the end of /etc/passwd to include everything from NIS, the switch provides a faster alternative for this case (`passwd: files nis') which doesn't require the single + entry in /etc/passwd, /etc/group, and /etc/shadow. If this is not sufficient, the NSS `compat' service provides full +/- semantics. By default, the source is `nis', but this may be overriden by specifying `nisplus' as source for the pseudo-databases passwd_compat, group_compat and shadow_compat. This pseudo-databases are only available in GNU C Library.

  5. #5
    Linux Newbie
    Join Date
    Dec 2008
    Location
    Luxembourg
    Posts
    136
    Of course 'ldap' and not 'dns'.
    It's a typo error in my previous email.
    Please note indeed that same type error is present in 'man nsswitch' under passwd_compat sample which introduces dns.

    About my request, my LDAP server is setup and before make it realy living I want to understand if I can replace 'compat' by ie. 'files ldap' to test passwd queries between files and ldap. Or is 'compat' something equivalent to this ?

    Dear HROAdmin26 do you have experiences and knowledges in IT and especially with nsswitch.conf and compat settings ?
    I mean something more constructive and interesting than copy / paste from man pages or Google searches.
    We're in a forum : it's a place for discussions and experiences exchanges.

    Bye,
    Bruno

  6. #6
    Just Joined!
    Join Date
    Mar 2011
    Posts
    4
    Hey.....what I can get from this discussion are two contradictory views:

    First is that mentioning "compat" in nsswitch.conf , we enable the usage of +/- semantics in /etc/passwd,shadow and group files.
    Second is mentioning "compat" we all together do away with requirement of putting +/- in passwd/shadow and group files.

    What is it ??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •