On Wed, 20 Jan 1999, Harald Hanche-Olsen wrote:

> | su-2.01# /var/qmail/bin/qmail-getpw lindgren-pat |  tr '\000' :
> | lindgren:1021:1021:/home/lindgren:::
> | 
> | Does this look right?
> 
> No!
> 
> | What are the last two fields in the printed results
> | ("-" and "joe" in your example above)?
> 
> They are the dash and extension.  Together, they are what qmail-local
> adds after ".qmail" to find out what .qmail file to use, thus ending
> with .qmail-joe.  It's divided up into dash and extension so the
> latter can be put into $EXT for use by any commands run from the
> .qmail file.
> 
> In your example, the expected output would be
> 
> lindgren:1021:1021:/home/lindgren:-:pat:
> 
> whereas /var/qmail/bin/qmail-getpw lindgren |  tr '\000' :
> ought to print what you did get.
> 
> So this is your problem, right there.  Now, do you run qmail's
> standard qmail-getpw or not?  

Yes, we haven't changed anything with the default qmail configuration, and
we experienced a clean install.  As I said, this behavior is only present
with this one domain, and no others, for no apparent reason.

> If you do, I must conclude that
> getpwnam() behaves rather strangely on your system.  (Or that there is
> another user actually named lindgren-pat in the passwd database.)

Is there any state information stored by qmail in terms of usernames and
domains?  That is, at one time there was a .qmail-default in that
directory, but I've since removed it, but the functionality hasn't gone
away.  

Thanks for your help.


---------------------------------------------
Chris Hardie            [EMAIL PROTECTED]
      http://www.summersault.com/chris
         great is the power of truth
---------------------------------------------

Reply via email to