Creating User Profiles
When a node is supplied on a command line or in a template, a user profile is chosen based on the current user. The information in this user profile is used to log on to the remote system.
Note: If you are the root account or a member of the
cfadmin
group, you can create your own profile as well as profiles for other users.
- Procedure
- Optional: On the command line, navigate to the $CFROOT/bin directory.
- Enter
cfprofile prompt:YES.
You are prompted for the required and optional parameters to define a user profile.Note: Without the
prompt:YES
option (or with theprompt:NO
option), you can define values for the required parameters and only the optional parameters you want to use. See the following sample command:cfprofile n:dataserverA u:kenny p:apple l:uk
- On the prompt, set the values for the required parameters.
See the following sample command:
cfprofile prompt:YES Enter a valid Node Name: dataserverB Add profile as local user ROOT? 1: Yes 2: No : 2 Enter new local user: johndoe Enter a valid Remote User: bob Enter a valid Remote Password:
This example creates a user profile for the local user johndoe. This local user johndoe can initiate a transfer request to the remote server defined for thedataserverB
node without having to know the user ID and password in the remote system. With this profile, johndoe only has to define the following on the command line:cfsend lf:/home/usr/file rf:dataset.name n:dataServerB
or
cfrecv lf:/home/usr/file rf:"c:\temp\test.txt" n:dataserverB