This is the mail archive of the cygwin-apps mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Attachment:
pgpZhod9sFCPV.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |