OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Delivery for local users when using pam_mysql (PAM)

From: Ilo Lorusso (sneak147gmail.com)
Date: Wed Oct 29 2008 - 15:12:19 CDT


[roothordepri ~]# perl -le 'for (ARGV) { print join(":",
getpwnam($_)) }' ipnoc

ipnoc:bb8mChsjCXn.c:5000:5000:::::/bin/bash

So what now ?

On Wed, Oct 29, 2008 at 9:57 PM, Ilo Lorusso <sneak147gmail.com> wrote:
> yeah I just did a perl
>
> script which look like this
>
> #!/usr/bin/perl
>
> print getpwnam("ipnoc"),"\n";
>
> and this was my output
> ===
> ipnocbb8mChsjCXn.c50005000/bin/bash
> ===
>
> everything looks right except for the colons missing between the fields..
>
> is that cause of perl? or what?
>
> On Wed, Oct 29, 2008 at 9:38 PM, Gustav Meirinho <gustavinfolink.com.br> wrote:
>> Try this:
>>
>> # perl -e 'print getpwnam "username",$/'
>>
>>
>>
>>
>>
>>
>> Ilo Lorusso escreveu:
>>
>> if getpwnam() is a system library routine and not a command how would
>> I go about performing those tests?
>> please forgive my ignorance ..
>> On Wed, Oct 29, 2008 at 8:44 PM, Wietse Venema <wietseporcupine.org> wrote:
>>
>>
>> Postfix uses the standard getpwnam() system library routine to
>> determine if a user exists.
>> You should do your tests with getpwnam(), not with the
>> getent command.
>> Wietse
>>
>>
>>
>