Go to the first, previous, next, last section, table of contents.


rootMakeAUser

Function: rootMakeAUser { name -> }
file: muf/10-C-utils.t
package: muf
status: alpha

The rootMakeAUser function (a wrapper around the lower level rootMakeUser function) creates a new user of the specified name and enters it into to the .u directory. (For an interactive wrapper around rootMakeAUser itself, See section rootAddUser.)

If there is a pre-existing user in .u with the given name, an error message is issued and no new user is created.

A user$s.lib is created for the new user, and all packages in .lib copied into it. In addition, a new package owned by (and named after) the user is created, entered into user$s.lib, and user$s.defaultPackage set to it: This is the package the user will be "in" immediately after logging on.

Finally, user$s.name is set to the given name, and user$s.shell set to muf:oldMufShell, the default MUF shell.

After calling rootMakeAUser, you will frequently wish to set user$s.shell to something more appropriate, and also set user$a.encryptedPassphrase via something like

[ 'f' 'f' 'm' 'y' 'p' 'w' | |secureHash ]join --> .u["pat"]$a.encryptedPassphrase

See section rootAddUser. See section rootBecomeUser. See section rootMakeUser { [ proposedDbfileName | -> [ user | }. See section |secureHash.


Go to the first, previous, next, last section, table of contents.