|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Ilo Lorusso (sneak147
gmail.com)
Date: Wed Oct 29 2008 - 15:12:19 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[root
hordepri ~]# 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 <sneak147
gmail.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 <gustav
infolink.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 <wietse
porcupine.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
>>
>>
>>
>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]