garbled 52b2cb6a03 Apply patches from PR bin/24695 by Peter Postma:
The changes are:

        * rename "Security and Users" to "Users and Groups"
        * use default settings in /etc/usermgmt.conf (if it exists)
          when adding a new user.
        * fix output for 'List users'.
        * add the following menu's: Modify user, Change password, Add group,
          List groups, Delete group.
2004-03-09 20:06:42 +00:00

13 lines
299 B
Bash
Executable File

#!/bin/sh
# $NetBSD: script2,v 1.2 2004/03/09 20:06:42 garbled Exp $
if [ -r "/etc/usermgmt.conf" ]; then
FIRST=`grep 'shell' /etc/usermgmt.conf | awk '{print $2}'`
fi
if [ -n "$FIRST" ]; then
echo $FIRST
egrep -v '(^#|^$)' /etc/shells | grep -v "$FIRST"
else
egrep -v '(^#|^$)' /etc/shells
fi