Thanks all..
incorrect permissions on my libnss-mysql.cfg file..
alot of hair pulling for such a simple problem..
Tx..
On Wed, Oct 29, 2008 at 11:54 PM, Victor Duchovni
<[EMAIL PROTECTED]> wrote:
> On Wed, Oct 29, 2008 at 11:04:27PM +0200, Ilo Lorusso wrote:
>
>> perl -le 'for (@ARGV) { print
On Wed, Oct 29, 2008 at 11:04:27PM +0200, Ilo Lorusso wrote:
> perl -le 'for (@ARGV) { print join(":",getpwnam($_)) }' ipnoc
>
> -bash-3.2$
>
> nope.. not successfull, what does this mean?
Your MySQL (IIRC) nss module is misconfigured. Only root can do
passwd lookups. You must allow all users
-bash-3.2$ perl -le 'for (@ARGV) { print join(":",getpwnam($_)) }' ipnoc
-bash-3.2$ whoami
sneak
-bash-3.2$ who am i
sneakpts/62008-10-29 23:10 (172.69.128.108)
-bash-3.2$
On Wed, Oct 29, 2008 at 11:04 PM, Ilo Lorusso <[EMAIL PROTECTED]> wrote:
> perl -le 'for (@ARGV) { print join("
perl -le 'for (@ARGV) { print join(":",getpwnam($_)) }' ipnoc
-bash-3.2$
nope.. not successfull, what does this mean?
On Wed, Oct 29, 2008 at 10:35 PM, Victor Duchovni
<[EMAIL PROTECTED]> wrote:
> On Wed, Oct 29, 2008 at 10:12:19PM +0200, Ilo Lorusso wrote:
>
>> [EMAIL PROTECTED] ~]#perl -l
On Wed, Oct 29, 2008 at 10:12:19PM +0200, Ilo Lorusso wrote:
> [EMAIL PROTECTED] ~]#perl -le 'for (@ARGV) { print join(":",
> getpwnam($_)) }' ipnoc
>
> ipnoc:bb8mChsjCXn.c:5000:5000:/bin/bash
>
> So what now ?
Now repeat the experiment when not running as root. If it still works,
post
Ilo Lorusso:
> [EMAIL PROTECTED] ~]#perl -le 'for (@ARGV) { print join(":",
> getpwnam($_)) }' ipnoc
DO NOT RUN THE TEST AS ROOT.
Wietse
[EMAIL PROTECTED] ~]#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 <[EMAIL PROTECTED]> wrote:
> yeah I just did a perl
>
> script which look like this
>
> #!/usr/bin/perl
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 a
On Wed, Oct 29, 2008 at 05:38:35PM -0200, Gustav Meirinho wrote:
>Try this:
>
># perl -e 'print getpwnam "username",$/'
A slightly more clean Perl "getent passwd" clone:
perl -le 'for (@ARGV) { print join(":", getpwnam($_)) }' "username" ...
--
Viktor.
Disclaimer:
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 <[EMAIL PROTE
On Wed, Oct 29, 2008 at 09:26:32PM +0200, Ilo Lorusso wrote:
> if getpwnam() is a system library routine and not a command how would
> I go about performing those tests?
With a C program, or perhaps a Perl script (if we trust Perl's
getpwnam()). You should also make sure that getent(1) works when
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 <[EMAIL PROTECTED]> wrote:
> Postfix uses the standard getpwnam() system library routine to
> determine if a user
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
Hi,
I've got my system using pam_mysql for authentication for horde and
dovecot which is working great.
when I wish to try send a message to one of my local users which
resides in the MySQL database
postfix keeps bouncing the message as user unknown.. logs below..
==
Oct 29 18:26:16 hor
14 matches
Mail list logo