vtk_user

vtk_user_find

Usage:         
vtk_user_find userName [array]

Description:   
Return the VovId of a user given a user name. If the optional argument array is given, the array is filled with information as in vtk_user_get. 

Examples:
vtk_user_find john 
03072450 
vtk_user_find john a 
03072450 
parray a 
a(name) = john 
a(id) = 03072450 
...

Returns:       
The ID of the user or 00000000 if the user does not exist.

See Also

vtk_trace_list_users

vtk_user_forget

Usage:         
vtk_user_forget userId

Description:   
Forget the user with given ID. Only the ADMIN can use this procedure. 

Returns: 
TCL_OK on success and TCL_ERROR on failure.

vtk_user_get

Usage:         
vtk_user_get userId array

Description:   
Returns information about a user. If the ID doesn't exist, an error is returned. 
The associative array is filled with information about the specified user, including: 
user name 
user default priority 
user max priority 
date of last connection to the server 
number of executed jobs 
number of services required 
used time 

Example:
set uid [lindex [vtk_trace_list_users] 0]
vtk_user_get $uid userInfo
parray userInfo
userInfo(defaultpriority)    = 0
userInfo(executedjobs)       = 773898
userInfo(lastconnectiontime) = 1049502482
userInfo(lastjobtime)        = 1049502242
userInfo(maxpriority)        = 0
userInfo(name)               = casotto
userInfo(services)           = 0
userInfo(servicetime)        = 1090811968

See Also

vtk_trace_list_users

vtk_user_get_shell

Usage:         
vtk_user_get_shell 

Description:   
Get the default shell for the current user from the /etc/passwd entry. 
This is used, for example, in vovtaskermgr start to determine how to start 
the remote taskers based on the user's shell. 

Example: 
vtk_user_get_shell 
/bin/csh


See Also

vtk_logname

vtk_groupname

vtk_user_modify

No information for this procedure.

vtk_user_security

Usage:         
vtk_user_security 

Description:   
Returns a pair {n s} representing the security code in integer and string format. 

Example: 
vtk_user_security 
5 ADMIN

vtk_user_set

Usage
vtk_user_set userName [OPTIONS]

Description
This procedure is used exclusively inside the policy.tcl file.
The supported options are:

-defaultGroup  groupName    Used to specify the default group for the user
-group         groupName    Used to specify the group for which the fairshare weight applies.
                            If the option is not used, the default group "users" is assumed.
-weight        N            Used to specify the fairshare weight of the user in the group specified by
                            the option -group.
-windowsName   name         Used to specify an alternative name for the user to be used on Windows.



Examples
vtk_user_set john -defaultGroup regression -weight 10
vtk_user_set john -group alpha -weight 25

vtk_user_set_http_password

Usage:         
vtk_user_set_http_password UNDOCUMENTED

Description:
This is a preliminary implementation. The procedure takes 3 arguments: "" "winpassword" "ftpassword"
Also used to set the Windows Password as vtk_user_set_win_password.
To clear a password, pass the string "--clear--". 

Examples:

Set and clear the FlowTracer password:
vtk_user_set_http_password "" "" "abc1234"
vtk_user_set_http_password "" "" "--clear--"

Set and clear the windows password. 
vtk_user_set_http_password "" "xyz6789" ""
vtk_user_set_http_password "" "--clear--" ""