Corinna Vinschen wrote:
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.
BTW: The procmail package is also affected. Its postinstall script
creates a local group 'mail' using 'net localgroup ...'. This should be
changed, IMO.
Christian