> -----Original Message-----
> From: Theo Van Dinter [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 27, 2006 12:51
> To: SpamAssassin
> Subject: Re: /etc/shadow access from SA
> 
> On Mon, Feb 27, 2006 at 12:01:31PM -0600, Dallas L. Engelken wrote:
> > Justin, Are you positive?  I don't see getpwnam or getpwuid 
> accessing 
> > /etc/shadow on linux.  It hits /etc/passwd for the getpw* calls.
> > 
> > # cat test.pl
> > my $uid = getpwnam('root');
> > my $name = getpwuid(0);
> > print "name=$name uid=$uid\n";
> 
> That's because you're not asking for information found in shadow... :)
> 
> > # strace perl test.pl 2>&1 | grep passwd
> > open("/etc/passwd", O_RDONLY)           = 3
> > open("/etc/passwd", O_RDONLY)           = 3
> 
> Here's my version:
> 
> # cat t
> my @info = getpwnam("root");
> my @info2 = getpwuid(0);
> 

Gotcha.  Thanks for the clarification  :)

D

Reply via email to