Skip to content

Unable to delete users with special characters like backspace. #21109

@pradkn

Description

@pradkn

NOTE

If this case is urgent, please subscribe to Subnet so that our 24/7 support team may help you faster.

Some how these users with special characters like backspace are created in the cluster. I expect the minio takes care of them by not allowing them to create the users in the first space.

"status": "success",
 "user": "sampleus\u0008\u0008   \u0008er",
 "stsKeys": null,
 "svcaccs": null
}
{
 "status": "success",
 "user": "sampleusr\u0008er",
 "stsKeys": null,
 "svcaccs": [

Expected Behavior

Some how these users with special characters like backspace are created in the cluster. These users as i understand are created from the terminal by writing a custom script. I expect the minio takes care of them by not allowing them to create the users in the first place. But anyways, Now i am looking how to delete them in a multi node linux deployment using mc command.

Current Behavior

I have tried to delete them using mc command by various options as below but none of them work.

mc admin user remove myminio $'sampleus\x08\x08   \x08er'
mc: <ERROR> Unable to remove sample  er. The specified user does not exist. (Specified user does not exist).
mc admin user remove myminio "$(printf 'sampleus\b\b   \ber')"
mc: <ERROR> Unable to remove sample  er. The specified user does not exist. (Specified user does not exist).
# mc admin user remove myminio "$(printf 'sampleus\u0008\u0008   \u0008er')"
mc: <ERROR> Unable to remove sample  er. The specified user does not exist. (Specified user does not exist).
# mc admin user remove myminio $'sampleus\u0008\u0008   \u0008er'
mc: <ERROR> Unable to remove sample  er. The specified user does not exist. (Specified user does not exist).

I have also tried removing from the web UI.. It asks for

Are you sure you want to delete the following 1 user?
sampleus[C[C[Cer

And then nothing happens..
I am seeing the following header being initiated in the inspect option of the browser but no response
http://<redacted_ip>:<port>/api/v1/user/sampleus%08%08%1B%5BC%1B%5BC%1B%5BC%08er

Possible Solution

Steps to Reproduce (for bugs)

  1. Use a bash script to create a user where you can deliberately use backspace while creating the user.

Context

Regression

Your Environment

  • Version used (minio --version):
  • Server setup and configuration:
  • Operating System and version (uname -a):

minio version RELEASE.2025-02-07T23-21-09Z (commit-id=703f51164d3d0c44af41b0d86075a1f61e4779e7)
Runtime: go1.23.6 linux/amd64
License: GNU AGPLv3 - https://www.gnu.org/licenses/agpl-3.0.html
Copyright: 2015-2025 MinIO, Inc.
Linux node01 5.14.0-503.14.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 15 12:04:32 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions