DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

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

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦a5ff40a33⟧ TextFile

    Length: 469 (0x1d5)
    Types: TextFile
    Notes: UNIX file
    Names: »NOT.superuser«

Derivation

└─⟦bee8f15db⟧ Bits:30004169/disk2.imd Uniplex II+ V.6 release 1.0 (dansk)
└─⟦bee8f15db⟧ UNIX Filesystem
    └─⟦this⟧ »up/new/usr/UAP/install.cmds/NOT.superuser« 

TextFile


: '
install.cmds/NOT.superuser

Usage: NOT.superuser

Exits: 1 - OK
       0 - user not UID 0. Message displayed

Notes: "id" command is not generally available,
       Some systems do not name UID 0 "root"
       So this command is more lugubrious than it might be
'

cd /tmp
TMP=uii.ins.$$
> $TMP
FIND=`find . -user 0 -name $TMP -print`
rm -f $TMP
case "$FIND" in
 ./$TMP) exit 1;;
esac
echo "${BELL}You must be \"superuser\" (UID 0) to run this program"
>&2 exit 0