RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1969825 - groupdel: unrecognized option '--force' ; but -f works
Summary: groupdel: unrecognized option '--force' ; but -f works
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: shadow-utils
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Iker Pedrosa
QA Contact: Anuj Borah
URL:
Whiteboard: sync-to-jira
Depends On: 1989556
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-09 09:40 UTC by Petr Sklenar
Modified: 2021-12-07 21:54 UTC (History)
4 users (show)

Fixed In Version: shadow-utils-4.9-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-07 21:52:33 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2021-06-09 09:40:35 UTC
Description of problem:
--force is unknown option but -f works

Version-Release number of selected component (if applicable):
shadow-utils-4.8.1-8.el9.x86_64

How reproducible:
always

Steps to Reproduce:
1. yum install dhcp-server
2. groupdel  --force dhcpd
3.

Actual results:
[root@ci-vm-10-0-139-212 ~]# groupdel  --force dhcpd
groupdel: unrecognized option '--force'
Usage: groupdel [options] GROUP

Options:
  -h, --help                    display this help message and exit
  -R, --root CHROOT_DIR         directory to chroot into
  -P, --prefix PREFIX_DIR       prefix directory where are located the /etc/* files
  -f, --force                   delete group even if it is the primary group of a user

[root@ci-vm-10-0-139-212 ~]# groupdel  -f dhcpd

### this works


Expected results:
--force is the same as -f

Additional info:

Comment 1 Iker Pedrosa 2021-06-09 10:22:46 UTC
Already fixed upstream:
* master
    bd4dc81a82f21f699404f0834e30bef530c57528 - add parsing support for advertised force long opt


Note You need to log in before you can comment on or make changes to this bug.