6 - 90
6.11 Login User Setting and Restriction
6.11.2 Setting a login user
6
PREPARATORY PROCEDURES AND SETTING
(b) Setting a login user
To add a login user account other than the default, or to delete or change any
existing account, use the functions offered by the loginLib library in a script file or
user program.
For details of the functions, refer to the following.
Manual for VxWorks
* 1 When "\" is contained in the user name or password, describe "\" as "\\".
Table 6.25 Login user setting operation list
Login user operation Function name
Password encryption
loginDefaultEncrypt function
*1
or vxencrypt command
Addition
loginUserAdd function
*1
Deletion
loginUserDelete function
*1
Password change After "Deletion", execute "Addition" with a new password.
Login user list display loginUserShow function
Login user verification
loginUserVerify function
*1
Example: To delete an account of user name "tar\get" and password "pass\word", describe the
function as follows:
loginUserDelete("tar\\get", "pass\\word");
<Program example>
When registering "qcpu" as a user name and "mitsubishi" as a password:
1) Encrypt the password with the loginDefaultEncrypt function or the vxencrypt command
*1
.
When using the vxencrypt command, start it from the command prompt of the development
environment (personal computer).
*2
C:\WindRiver\vxxworks-6.4\host\x86-win32\bin>vxencrypt
Please enter password : mitsubishi
encrypted password is ******
2) Register the user on VxWorks with the loginUserAdd function.
Set it in the script file or user program.
loginUserAdd ("qcpu" , "******");
Encrypted password is displayed.
Type the encrypted password.
*1 Refer to the following manual for details of the vxencrypt command.
VxWorks Manual
*2 The message shown below may be displayed during execution of the vxencrypt
command. Since it does not mean any problem with the encryption, ignore the
message.
<Displayed message>
'stty' is not recognized as an internal or external command, operable program
or batch file.
For Workbench
C:\Tornado\host\x86-win32\bin>vxencrypt
Please enter password: mitsubishi
encrypted password is ******
For Tornado