On Nov  6 19:50, Corinna Vinschen wrote:
> On Nov  6 19:34, Christian Franke wrote:
> > But PLEASE keep the ability to create local users/groups without a prefix.
> > Otherwise useful configuration defaults (mail_owner=postfix, ...) would be
> > no longer useful because config files must be tweaked for each host
> > (mail_owner=HOST+postfix, ...) for the sole purpose of[1]. Some of such
> > technical users (sshd?) might also be hard coded or a config parser might
> > not like the HOST+USER syntax.
> 
> And how's that supposed to work?  Even if we introduce a way in
> /etc/nsswitch.conf to generate usernames differently, it doesn't really
> help.  Your config file should be able to work with default settings
> and not force the admin to use specific settings in nsswitch.conf.

Btw., sshd contains a patch to allow sshd as well as MACHINE+sshd as
account name for the unprivileged privsep account.  There's a new
system call in Cygwin for that very purpose:

  #include <sys/cygwin.h>

  cygwin_internal (CW_CYGNAME_FROM_WINNAME, "unprefixed-accountname",
                   username_buffer, sizeof username_buffer);

See the comment in external.cc, under the CW_CYGNAME_FROM_WINNAME case.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgptss2n8h_Tj.pgp
Description: PGP signature

Reply via email to