DataMuseum.dk

Presents historical artifacts from the history of:

ICL Comet 32

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about ICL Comet 32

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦1f35bd824⟧ TextFile

    Length: 710 (0x2c6)
    Types: TextFile
    Notes: UNIX file
    Names: »nu1.sh«

Derivation

└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
    └─⟦28c352965⟧ »/a« UNIX Filesystem
        └─⟦this⟧ »etc/nulib/nu1.sh« 

TextFile

#! /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