Re: using /etc/passwd, /etc/mailname for users

From: Martyn J. Pearce <fluffy@inpharmatica.co.uk>
Date: Sat Apr 12 2003 - 16:38:28 GMT

(Debian bug 117511)

On Mon, Oct 29, 2001 at 04:39:30AM -0500, Mark W. Eichin wrote:
> package: cvs2cl
> Version: 2.38-1
> priority: wishlist
>
> Simple but debian-specific enhancement - upstream might try and be
> more portable by making the /etc/mailname lookup something that an
> argument can set, but it is actually right for debian in the simple
> case (and in the complex case, well, you've already got -U.) Adds
> this as --passwd option. Could also be extended to do NIS (via
> ypmatch) or LDAP (ldapsearch), though using nss instead would be
> better; could at least use some CPAN package for passwd access, even
> the getpwnam/getpwent builtin would do. Mostly this is a 3 minute
> hack that was useful for me, but that's more expressive than just
> asking :-)

Mark,

With many apologies for the enormous delay (the bug got lost in the
system...), I have added this patch, with modifications, to cvs2cl.pl .

My modifications are:

-) --passwd takes an argument, specifying the passwd file to use.
-) A --mailname option specifies the mail domain. In its absence, the
   contents of /etc/mailname (if present) are used. Failing that, the
   output of hostname -d, dnsdomainname, or domainname are tried. Else it
   bails (with --passwd).

I hope that'll do!

Thanks very much for the patch.

Mx.
Received on Sat Apr 12 16:43:35 2003

This archive was generated by hypermail 2.1.8 : Wed Jan 21 2004 - 16:25:34 GMT