# PASSWD_FILE_NAME - Name of the passwd file to edit.

set PASSWD_FILE_NAME	/etc/passwd

# PASSWD_LOCK_DIR - File/directory created to lock /etc/passwd and /etc/group
#	files.
# NOTE: This should (most likely) only be changed if you would like to edit a
#	non-system passwd file that does not need to be locked.
# GLOBAL_PASSWD_LOCK_DIR - File/directory used as a global lock for the passwd
#       and group files if it has a value.

set PASSWD_LOCK_DIR	/etc/ptmp
set GLOBAL_PASSWD_LOCK_DIR	/usr/spool/locks/ptmp
#set GLOBAL_PASSWD_LOCK_DIR	{}

# GROUP_FILE_NAME - Name of group file to edit.

set GROUP_FILE_NAME	/etc/group

# SKEL_DIRECTORY - Name of directory that contains the skeleton for new users

set SKEL_DIRECTORY 	/n/picasso/group/rdist/skel

# TMP_DIRECTORY - Name of directory to store temporary files in.

set TMP_DIRECTORY	/tmp

# DISTRIBUTE_DESTINATIONS_PASSWD - Destinations for passwd file
# DISTRIBUTE_DESTINATIONS_GROUP - Destinations for group file
# DIR_LIST - List of destination directories
# get_dist_list - Create a list of destinations given a directory list and a file name.

set DIR_LIST \
{
	elmer-fudd.cs.berkeley.edu:/etc
	tweety.cs.berkeley.edu:/etc
	zonker.cs.berkeley.edu:/etc
	linus.cs.berkeley.edu:/etc
	woodstock.cs.berkeley.edu:/etc
	roger-rabbit.cs.berkeley.edu:/etc
	gumby.cs.berkeley.edu:/etc
	mickey.cs.berkeley.edu:/etc
	bugs-bunny.cs.berkeley.edu:/etc
}
proc get_dist_list {dir_list file} \
{
	set list {}
	foreach dir $dir_list \
	{
		lappend list "$dir/$file"
	}
	return $list
}
set DISTRIBUTE_DESTINATIONS_PASSWD [get_dist_list $DIR_LIST passwd]
set DISTRIBUTE_DESTINATIONS_GROUP [get_dist_list $DIR_LIST group]

# USER_LIST_FONT - Font used in userlists.
# NOTE: USER_LIST_FONT should not be a proportional font.

set USER_LIST_FONT	*courier-medium-r-normal--*-140*

# HOME_DIR_LIST - List of home directory bases.

set HOME_DIR_LIST \
{
	/n/picasso/users
	/a/staff
	/n/olympus
	/n/mickey/cluster/home
	/u
}

# SHELL_LIST - List of shells in use on system.

proc get_shell_list {} \
{
	set shell_file [open /etc/shells r]
	set shell_text [read $shell_file nonewline]
	close $shell_file
	return $shell_text
}
set SHELL_LIST [get_shell_list]

# PASSWD_ENTRIES - List of raw password entries.

set PASSWD_ENTRIES \
{
	{}
	{*}
}

# CONTROL_PANEL - Variable to turn on/off the control panel.
#                 T => Display, F => Do not display.

set CONTROL_PANEL T

# BACKGROUND_COLOR_MAIN - Background color to use for MAIN window.

set BACKGROUND_COLOR_MAIN cyan4

# BACKGROUND_COLOR_ADD_EDIT - Background color to use for ADD or EDIT windows.

set BACKGROUND_COLOR_ADD_EDIT cyan4
