
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.
13 lines
299 B
Bash
Executable File
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
|