#!/bin/bash
# Program:	copypass
# Purpose:	To copy the system password file to httpd for use by the
#		dynamic webpages (oml) to tell who have done what.
# Needs:	/etc/passwd
#		Apache webserver, php
#
# Dates:	1999-12-13	Wrote this script (at least modified it)
#		2000-02-06	Added some documentation!
#		2000-07-18	Moved oml to a other place
#		2000-07-27	Moved DD to /var/cache/omlcs
#		2001-09-02	Now really moved to /var/cache/omlcs
#
DD="/var/cache/omlcs/passwd.txt"
cp -f /etc/passwd $DD
chown www-data.www-data $DD
chmod -w $DD
chmod +r $DD
