the logic after that of NetBSD's user(8). Now we get unique IDs as intended (instead of always getting 300). On Panther Server, we need to send a HUP to lookupd(8) to make the system notice a newly niload'd user account. No harm done on the consumer version of Panther. Ensure that PATH is set to our liking. Bump version to 20040801.
19 lines
338 B
Bash
Executable file
19 lines
338 B
Bash
Executable file
#!/bin/sh
|
|
|
|
PATH=/bin:/usr/bin:$PATH
|
|
|
|
if [ $# -gt 1 ]; then
|
|
echo "groupdel: Unrecognized option $1" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
group="$1"
|
|
if [ -z "$group" ]; then
|
|
echo "groupdel: Must specify group" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
if ! niutil -destroy . /groups/$group 2>/dev/null; then
|
|
echo "groupdel: Could not delete group" 1>&2
|
|
exit 1
|
|
fi
|