Grid atoms


hasGlobusAccess (DN, localusername)
hasGlobusAccess tests whether distinguished name DN is mapped to local username localusername in the standard globus grid-map file.

globusAccess (DN, localusername [, position])
globusAccess is the same as hasGlobusAccess except that it adds the DN to the grid-mapfile if it's not already there. The position argument can be first or last to specify if the DN is added to the beginning or end of the grid-mapfile.

hasSshAccess (username, public_key)
hasSshAccess tests whether username has access to the installation computer using the public key public_key.

sshAccess (username, public_key)
sshAccess is the same as hasSshAccess except that if the condition is not satisfied, Pacman will add the public_key to the authorized keys file of the user username.

username (username), userExists (username [, group]), groupExists (group), userAdd (username [, group [, shell [, homedir]]]), groupAdd (group)
username requires that the installer be a specific username. userExists requires that a user username exists on the installing system. The group can also optionally be specified. userAdd adds a user to the system if necessary with username, group, shell and home directory as indicated. For example
username('root')                                        # requires that only root may install the package
userExists('youssef')                                   # requires that a username youssef exists
userAdd('youssef','physics','/bin/csh','/home/youssef') # creates a user youssef if necessary
If the installer doesn't have priviledge to perform these operations, Pacman will provide sensible error messages.

workspace (name, environmentVariable, minmegs [, owner [, options]])
workspace let's you specify an disk area in a local file system to be chosen by the installer. You can assign such workspaces names (name) specify that a chosen environment variable (environmentVariable) point to the location of the work space, minmegs specifies the minimum number of megs of free disk space which must be available at installation time. The optional owner argument let's you specify the ownership of the directory (the default owner is the installer). The optional options let's you specify access to the directory and whether it's temporary (to be removed on uninstallation) or permanent (to be kept even after uninstallation). Permanent is the default. Here are a couple of examples.
workspace("Bob's Temporary Sandbox",'BOB_SCRATCH',1000,'bob','ownerWrite temporary') # temp 1G space
workspace("Bob's Permanent Data Storage",'BOB_DATA',10000,'bob','worldRead permanent')
workspace('General scratch','SCRATCH','- any -','worldWrite temporary')
Use "- any -" to let the directory be owned by the installer. As usual, Pacman will remember the choices that the installer makes, so if a package is uninstalled and re-installed, the questions won't be asked unless the installer uses -ignore-cookies.


Pacman Headquarters