[ITP] Sendmail 8.14.9

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Nov 3 09:23:00 GMT 2014


On Nov  2 13:43, Christian Franke wrote:
> D. Boland wrote:
> >Christian Franke wrote:
> >>The following should IMO never be done in a postinstall script:
> >>- Creation of user and group accounts.
> >>- Installation of services.
> >>- Setting alternatives to manual mode (/usr/sbin/alternatives --set ...)
> >>Please consider moving the above to the sendmail-config script.
> >All steps in postinstall are necessary for running Sendmail.
> 
> Note that the above steps are re-done on each package update.
> 
> The installation of sendmail does not imply that the user wants to run it
> immediately.

These are important points.

For other services we never create the accounts without the user
explicitely requesting them by calling the <service>-config script.

The other problem is that you don't know if creating the a local account
is the right thing to do.  In many companies there are restrictions on
creating a local account and a domain account has to be created instead.
Your config script has to take that into account by checking if a matching
user account exists already or to ask the user if it should be created.

There's a helper script framework available for that, called csih.  It's
used, for instance, by the cron-config or ssh-host-config scripts.  It
has functions to check for predefined accounts and to install them on
user request, see for instance the call to csih_create_unprivileged_user()
in /bin/ssh-host-config.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20141103/b3b7db55/attachment.sig>


More information about the Cygwin-apps mailing list