NetBSD Problem Report #59415

From triaxx@netbsd.org  Sat May 10 05:26:15 2025
Return-Path: <triaxx@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BF6991A9242
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 10 May 2025 05:26:14 +0000 (UTC)
Message-Id: <20250510052613.B23581A9243@mollari.NetBSD.org>
Date: Sat, 10 May 2025 05:26:13 +0000 (UTC)
From: triaxx@netbsd.org
Reply-To: triaxx@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: group(8) can rename a group to an existing group name
X-Send-Pr-Version: 3.95

>Number:         59415
>Category:       bin
>Synopsis:       group(8) can rename a group to an existing group name
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 10 05:30:00 +0000 2025
>Originator:     Frédéric Fauberteau
>Release:        NetBSD 10.1
>Organization:
>Environment:
System: NetBSD ghost.triaxx.online 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
groupmod(8) doesn't seem to check whether a new group name is already in use or not.
>How-To-Repeat:
# tail -n2 /etc/group
foo:*:1003:
bar:*:1004:

# group mod -n foo bar

# tail -n2 /etc/group
foo:*:1003:
foo:*:1004:
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.