[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

perl or libc6 bug?: getpwnam('root') in NIS environment



Hi,

I'm just trying to write an short prototype for an external
authenticator for squid and discovered the following:

    #! /usr/bin/perl
    print (getpwnam('root'))[1], "\n";

returns the root encrypted password from the NIS-Servers /etc/shadow ...!!


    /etc/nsswitch reads as:
    passwd:         files nis #compat
    group:          files nis #compat
    shadow:         files nis #compat


And root is in /etc/{passwd,shadow} on the local host.


Can anybody explain this?

Package: perl
Version: 5.004.04-7

Package: libc6
Version: 2.0.7.19981211-6


    Best Regards from Dresden/Germany
    Viele Gruesse aus Dresden
    Heiko Schlittermann
-- 
[internet & unix support ----------------- Heiko Schlittermann]
[<a href="http://debian.schlittermann.de/";> Debian 2.1 CD </a>]
[Heiko Schlittermann HS12-RIPE finger:heiko@schlittermann.de -]
[pgp: A1 7D F6 7B 69 73 48 35  E1 DE 21 A7 A8 9A 77 92 -------]


Reply to: