Skip to content

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

@jvasile

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions