Files
Pierre Warnier 81d0e1776d docs/fixes: man pages, benchmarks, BSD research, Copilot findings
Fixes #56 — 14 man pages in docs/man/ (markdown format).
Fixes #67 — 8 Copilot findings fixed:
  - useradd: proper date validation (Feb 31 rejected)
  - userdel/usermod: --root wired to SysRoot
  - usermod: --expiredate validates input
  - usermod: --login validates name + updates shadow/group
  - userdel: -f separated from -r behavior
  - useradd: home dir resolved through SysRoot
  - skel: preserves directory permissions
Fixes #69 — benchmark script (benches/benchmark.sh)
Fixes #70 — FreeBSD/NetBSD reference (docs/FREEBSD-NETBSD-REFERENCE.md)

456 tests, zero clippy warnings.
2026-03-24 13:05:40 +01:00

909 B

groupdel(8) - delete a group

NAME

groupdel - delete a group

SYNOPSIS

groupdel [options] GROUP

DESCRIPTION

The groupdel command modifies the system account files, deleting all entries that refer to GROUP. The named group must exist.

You may not remove the primary group of any existing user. You must remove the user before you remove the group.

OPTIONS

-P, --prefix PREFIX_DIR
Use PREFIX_DIR as a prefix for system file paths.
-R, --root CHROOT_DIR
Apply changes in the CHROOT_DIR directory.

EXIT STATUS

0
Success.
2
Invalid command syntax.
6
Group does not exist.
8
Cannot remove a user's primary group.
10
Cannot update group file.

FILES

/etc/group
Group account information.
/etc/gshadow
Secure group account information.

SEE ALSO

groupadd(8), groupmod(8), userdel(8)