|
|
DataMuseum.dkPresents historical artifacts from the history of: ICL Comet 32 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about ICL Comet 32 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 897 (0x381)
Types: TextFile
Notes: UNIX file
Names: »nu4.sh«
└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
└─⟦28c352965⟧ »/a« UNIX Filesystem
└─⟦this⟧ »etc/nulib/nu4.sh«
#! /bin/csh -f
# This shell script is called from nu to purge one account without
# removing it from the /etc/passwd database (to preserve accounting info.)
#
# it is named "nu4.sh" instead of something like "deleteacct.sh" to discourage
# people from trying to run it standalone, without going through nu.
#
# Created: 8 Oct 84 Jeffrey Mogul
set exuser=$1
set logindir=$2
set linkdir=$3
set Logfile=$4
set debug=$5
set egrepstr = "^${exuser}\:"
if ($debug == 0) then
/etc/nulib/rm-rf $logindir
if ($status) exit(1)
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
egrep -s $exuser /usr/lib/aliases
if ($status == 0) then
echo User $exuser is still referenced in /usr/lib/aliases\; please edit out.
endif