Skip to content

.deb doesn't create user/group/default files #33

Closed

Description

@jvasile

The deb file in releases doesn't create the mini-io user/group that the service file expects. Similarly, the service file expects /etc/default/minio and the .deb doesn't create it.

Expected Behavior

Deb's pre-inst script creates the user/group. Deb's post-rm script removes the user/group.
Pre-inst should make /etc/default/minio, but not remove it if the user has edited it.

Current Behavior

On install, these resources are not created.

Possible Solution

Add pre-inst and post-rm scripts to create the user/group and rm the user/group. It should put a /etc/default/minio in place.

I have repackaged this for my own repo (https://apt.jamesvasile.com/pool/main/m/minio/). You're welcome to anything in that package. If you want me to submit a PR with those changes, I will.

Steps to Reproduce (for bugs)

Use apt or dpkg to install the released deb. Use systemd status and see it not running and the error indicating a lack of a user/group.

After creating user/group, see if fail for lack of envars that should be set in /etc/default/minio

Context

I ended up repackaging the deb to add the needed resources. I create the user/group and put a basic /etc/default/minio in place, but with a commented-out password and a service file designed to complain. That will make "systemd start minio" fail, but it should then be obvious how to fix it if the user looks in journalctl.

Your Environment

minio version RELEASE.2026-04-17T00-00-00Z (commit-id=f48dbe777d0e066d2e74d5e671a8ca21c2ec1664)
Runtime: go1.26.2 linux/amd64

Linux francium 6.19.10+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.19.10-1 (2026-03-27) x86_64 GNU/Linux

Activity

  1. added theissue type on Jun 30, 2026
  2. Vonng commented on Jun 30, 2026

    @Vonng
    Member

    Thanks for the report.

    The original MinIO Debian packages including such as:

    • minio_20210223200501.0.0_amd64.deb
    • minio_20250907161309.0.0_amd64.deb

    They do not ship Debian maintainer scripts like preinst, postinst, prerm, or postrm. That means they did not create the minio-user system account, did not create /etc/default/minio, and did not enable or start the systemd service automatically.

    So this behavior is inherited from the original MinIO packaging. For compatibility, I would prefer not to make the package create OS users, credentials, data directories, or service configuration automatically. Those are deployment-specific choices and are better handled explicitly by the administrator rather than hidden inside Debian package installation.

    If you want a playbook that prepares the full MinIO operating-system environment automatically, I wrote one in Pigsty FYI: MinIO module: https://pigsty.io/docs/minio/

  3. added
    enhancement
    wontfix
    on Sep 15, 2026
  4. self-assigned this
    on Sep 15, 2026
  5. added this to the 20260806 milestone on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementwontfix

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions