Here are some enhancements to sushi's System Maintenance menu.
To summarize the changes:
* Make a backup of the file before modifying it.
* Fixes to get all menus/forms working.
* Missing/invalid settings (like in rc.conf and inetd.conf)
have been added/removed.
* Most files don't get overwritten now but are edited instead.
So specials settings in e.g. /etc/rc.conf don't get lost now.
* Some help menu fixes. ($NetBSD$ tag has been removed because I
don't see how it would be useful for either user or developer).
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.
related scripts:
* Don't check if the daemons ntpdate, virecover, ipfilter, samba
are running (because they get only started at boot, or are wrappers
to other scripts).
* Exclude lines with 'not supported' and 'not found' in the ouput.
* Top 15 cpu {usage,time} and memory: show really the 15 top daemons
(instead of 14) and fix cpu time.
to be very unhappy with life. Audited this file again, which should
bring it back in line, and fix the problem noted by Bill Studenmund.
Thanks for taking the time to find the bug Bill.
Replace $critical_filesystems with $critical_filesystems_remote .
The new names are now consistent with the type argument that
mount_critical_filesystems() is called with, and allows for other types to
be easily supported by that function.
For backwards compatibility purposes, if the now obsolete variable is defined
(even empty), it takes precedence over the new form, and you will be warned.
If you want to stop the warnings, update your rc.conf(5) settings!
1) Noted by Brett Lymn, the nwkey string, when run as non-root, reads *****,
which causes the shell to go wonky and read in lists of files.
2) The sed pattern was all wrong. It couldn't handle quoted network
ID's, and would grab the rest of the line. Add a sed script to handle this.
sushi the ability to do the following tasks:
Edit /etc/exports
Edit /etc/hosts
Change the hostname
Modify NIC configuration
Change the default route
Setup YP/NIS.