home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenStep 3.3J
/
os33j.iso
/
private
/
etc
/
nulib
/
nu3.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
1989-08-25
|
667b
|
26 lines
#! /bin/csh -fb
# This shell script is called from nu to purge one account.
#
# it is named "nu3.sh" instead of something like "killacct.sh" to discourage
# people from trying to run it standalone, without going through nu.
#
# Created: 25 Aug 84 Brian Reid
# Modified: 9 Jun 89 Lee Tucker
set exuser=$1
set logindir=$2
set linkdir=$3
set Logfile=$4
set debug=$5
set egrepstr = "^${exuser}\:"
if ($debug == 0) then
rm -rf $logindir; echo rm -rf $logindir
if ($logindir != $linkdir) then
rm $linkdir
echo rm $linkdir
endif
rm -f /usr/spool/mail/$exuser; echo rm -f /usr/spool/mail/$exuser
endif
echo $exuser deleted by $user `date` >> $Logfile