|
|
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: 710 (0x2c6)
Types: TextFile
Notes: UNIX file
Names: »nu1.sh«
└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
└─⟦28c352965⟧ »/a« UNIX Filesystem
└─⟦this⟧ »etc/nulib/nu1.sh«
#! /bin/csh -f
# This shell script is called from /etc/nu to create a new directory for a
# new user, and to make the necessary links and permissions for it.
#
# it is named "nu1.sh" instead of something like "makeuser.sh" to discourage
# people from trying to run it standalone, without going through nu.
set uid=$1
set gid=$2
set logindir=$3
set linkdir=$4
set clobber=$5
set debug=$6
set noglob; set path=(/etc $path); unset noglob
# set verbose
if ($clobber) then
/etc/nulib/rm-rf $logindir
if ($status) exit(1)
mkdir $logindir
endif
# if ($logindir != $linkdir) ln -s $logindir $linkdir
if (($debug == 0) && $clobber) chown $uid $logindir
if (($debug == 0) && $clobber) chgrp $gid $logindir