Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199508.adf » !Internet » StarterPak/!Newsbase/Transports/uucp/adduser

StarterPak/!Newsbase/Transports/uucp/adduser

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199508.adf » !Internet
Filename: StarterPak/!Newsbase/Transports/uucp/adduser
Read OK:
File size: 01A5 bytes
Load address: 0000
Exec address: 0000
File contents
if "%0"<>"-f" AND "%0"<>"-u" then error strange adduser call format "adduser %*0"
set tmpgrp 1
if "%2"="-g" then set tmpgrp %3
| otherwise <tmpgrp> does not get replaced ?!
set alias$tmp run <Obey$dir>.usermain -p "" -s /bin/sh -h /usr/home/%s -n "" -g <tmpgrp> %1
tmp
unset alias$tmp
unset tmpgrp
set NewsBase$ReturnCode <Sys$ReturnCode>
if <NewsBase$Returncode><>0 then set NewsBase$ReturnInfo passwd file update failed
00000000  69 66 20 22 25 30 22 3c  3e 22 2d 66 22 20 41 4e  |if "%0"<>"-f" AN|
00000010  44 20 22 25 30 22 3c 3e  22 2d 75 22 20 74 68 65  |D "%0"<>"-u" the|
00000020  6e 20 65 72 72 6f 72 20  73 74 72 61 6e 67 65 20  |n error strange |
00000030  61 64 64 75 73 65 72 20  63 61 6c 6c 20 66 6f 72  |adduser call for|
00000040  6d 61 74 20 22 61 64 64  75 73 65 72 20 25 2a 30  |mat "adduser %*0|
00000050  22 0a 73 65 74 20 74 6d  70 67 72 70 20 31 0a 69  |".set tmpgrp 1.i|
00000060  66 20 22 25 32 22 3d 22  2d 67 22 20 74 68 65 6e  |f "%2"="-g" then|
00000070  20 73 65 74 20 74 6d 70  67 72 70 20 25 33 0a 7c  | set tmpgrp %3.||
00000080  20 6f 74 68 65 72 77 69  73 65 20 3c 74 6d 70 67  | otherwise <tmpg|
00000090  72 70 3e 20 64 6f 65 73  20 6e 6f 74 20 67 65 74  |rp> does not get|
000000a0  20 72 65 70 6c 61 63 65  64 20 3f 21 0a 73 65 74  | replaced ?!.set|
000000b0  20 61 6c 69 61 73 24 74  6d 70 20 72 75 6e 20 3c  | alias$tmp run <|
000000c0  4f 62 65 79 24 64 69 72  3e 2e 75 73 65 72 6d 61  |Obey$dir>.userma|
000000d0  69 6e 20 2d 70 20 22 22  20 2d 73 20 2f 62 69 6e  |in -p "" -s /bin|
000000e0  2f 73 68 20 2d 68 20 2f  75 73 72 2f 68 6f 6d 65  |/sh -h /usr/home|
000000f0  2f 25 73 20 2d 6e 20 22  22 20 2d 67 20 3c 74 6d  |/%s -n "" -g <tm|
00000100  70 67 72 70 3e 20 25 31  0a 74 6d 70 0a 75 6e 73  |pgrp> %1.tmp.uns|
00000110  65 74 20 61 6c 69 61 73  24 74 6d 70 0a 75 6e 73  |et alias$tmp.uns|
00000120  65 74 20 74 6d 70 67 72  70 0a 73 65 74 20 4e 65  |et tmpgrp.set Ne|
00000130  77 73 42 61 73 65 24 52  65 74 75 72 6e 43 6f 64  |wsBase$ReturnCod|
00000140  65 20 3c 53 79 73 24 52  65 74 75 72 6e 43 6f 64  |e <Sys$ReturnCod|
00000150  65 3e 0a 69 66 20 3c 4e  65 77 73 42 61 73 65 24  |e>.if <NewsBase$|
00000160  52 65 74 75 72 6e 63 6f  64 65 3e 3c 3e 30 20 74  |Returncode><>0 t|
00000170  68 65 6e 20 73 65 74 20  4e 65 77 73 42 61 73 65  |hen set NewsBase|
00000180  24 52 65 74 75 72 6e 49  6e 66 6f 20 70 61 73 73  |$ReturnInfo pass|
00000190  77 64 20 66 69 6c 65 20  75 70 64 61 74 65 20 66  |wd file update f|
000001a0  61 69 6c 65 64                                    |ailed|
000001a5