DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

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

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T l

⟦ff1833588⟧ TextFile

    Length: 2434 (0x982)
    Types: TextFile
    Names: »load-file.n«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/euug-87hel/sec8/mcp/help/load-file.n« 

TextFile

.ce
.ul
load-file [ file-name ... ]
.sp
.ul
load-file
allows a large number of user accounts to be created by loading the
necessary information from a file.  If
.ul
file-name
arguments are provided, mcp will use these names as the names of the files
that it expects the user information to be in.  Otherwise mcp
will prompt you for the file names using Tenex-style file name
completion.
.sp
The load file must be in a particular format in order for mcp
to be able to use its contents.  The format is given below.
.sp
The first character of the first line should be either
an 'n' or an 'i'.
An 'n' signifies the
.ul
"name first format"
while a 'i' indicates that the
.ul
"ID first format"
will be used.  These will become explained in a moment.
.sp
The second line should contain a space separated list of the groups
the added users should be in.  The gid of the first group in the list
will serve as the base gid for all the users added from this load file
so there must be at least one group listed.
.sp
The third line should contain a space separated list of classes that the new
users should be put into.  This line must be present but it may be empty
to indicate that the user shouldn't be placed into any classes.
.sp
The fourth line should contain a space separated list of sigs that the new
users should be put into.  This line must be present but it may be empty
to indicate that the user shouldn't be placed into any sigs.
.sp
The fifth line should contain the full pathname of the shell that the new
users should use.  This line must be present but it may be left empty
to indicate that the default shell should be used.
.sp
Successive lines should contain the real name and ID of users to be added.
if using the 'n' format the real name should be first; the 'i' format
requires that the ID be first.  The ID and real name may be separated
by any whitespace characters except newline.  The lines are parsed
into an argv-type array.  In format 'n' argv[argc-1] will be taken as
the ID and
argv[0] and the rest of the args exempting the ID are taken to be parts of
the real name.  In format 'i', argv[0] is taken as the ID and the rest of
the args are used as parts of the real name.
.sp
Mcp will emit vile vituperatives if you obviously have the file format wrong
and will refuse to do the load.
.sp
Remember that these added users, just like any others, are not really added
until a save-changes or a save-and-exit is done.