Use the following RSC commands to set or show characteristics of the RSC or server configuration:
set
show
date
password
useradd
userdel
usershow
userpassword
userperm
resetrsc
Use the set command to set an RSC configuration variable. You must have A level user permission to use this command. See "RSC Configuration Variables" for descriptions of these variables.
Changes to some variables do not take effect until the SSP that RSC is running on is reset using the command resetrsc or rscadm resetrsc.
You can use the null string ("") to set a variable to null. To set a variable to a string that includes spaces, enclose the string in double quotes. For example:
rsc> set page_info2 "" rsc> set page_init1 "&F &E0"
Use the show command to display the value of RSC configuration variables. You can specify one variable only; if you do not specify a variable, RSC displays all configuration variables. See "RSC Configuration Variables" for descriptions of these variables.
Use the date command without arguments to show RSC's current date and time. If you have A level user permission, you can use the date command to set the current date and time. The following table describes components of the date format.
Table 4-3 Components of the date Command
Option |
Description |
---|---|
mm |
Month number |
dd |
Day-of-the-month number |
HH |
Hour number (24-hour system) |
MM |
Minute number |
.SS |
Second number |
cc |
First two digits of year |
yy |
Last two digits of year |
You may omit the month, day, and year; the current values are applied as defaults.
rsc> date 091521451998 rsc> date 09152145 rsc> date 2145
The first example sets the time to September 15, 9:45 p.m., 1998. The second example sets the time to September 15, 9:45 p.m. of the current year. The third example sets the time to 9:45 p.m. of the current month, day, and year.
Whenever the server boots, it sets the RSC current date and time. However, to keep RSC time in sync with server time, Sun Microsystems recommends that you implement a script that uses the command rscadm date -s to update RSC time periodically from the server time. The RSC shell date command cannot synchronize RSC time with the server time.
Use the password command to change the RSC password for the account to which you are logged in. This command behaves similarly to the UNIX passwd(1) command.
When used to change a password, RSC prompts for your current password, and if you enter it correctly, it prompts for the new password. RSC prompts again for the new password, and updates it if entered identically both times. For example:
rsc> password password: Changing password for username Enter login password: Enter new password: Re-enter new password: rsc>
Passwords have the following restrictions:
They must contain at least six characters (only the first eight characters are significant).
They must contain at least two alphabetic characters and at least one numeric or special character; alphabetic characters can be both uppercase and lowercase.
They must differ from the user's login name and any reverse or circular shift of that login name; for comparison purposes, uppercase and lowercase letters are equivalent.
The new password must differ from the old by at least three characters; for comparison purposes, uppercase and lowercase letters are equivalent.
Adds an RSC user account. You must have U level user permission to use this command. The maximum number of RSC user accounts is four. Valid characters for username include:
Alphabetic characters
Numeric characters
Period (.)
Underscore (_)
Hyphen (-)
The username field has a maximum length of eight characters, must contain at least one lowercase alphabetic character, and the first character must be alphabetic. If these restrictions are not met, the system issues a warning and the command fails.
Deletes an RSC user account. You must have U level user permission to use this command.
Shows RSC user accounts. You must have U level user permission to use this command. If no argument is supplied, all accounts are shown. Information displayed includes username, permissions, and whether a password is assigned. For example:
rsc> usershow Username Permissions Password? setup cuar Assigned msmith c--r None rsc>
Sets or changes the password for the specified user account. You must have U level user permission to use this command. RSC does not prompt for an existing password. See the password command for details on password format and restrictions. For example:
rsc> userpassword msmith New password: Re-enter new password: rsc>
Sets or changes permission levels for a specified user account.
All RSC users can look at RSC information. The following arguments increase a user's authorization level:
c - Console permission; authorized to connect to the server console
u - User administration permission; authorized to use commands that add and delete users, change user permissions, and change the authorization level of other users
a - Administration permission; authorized to change the state of RSC configuration variables
r - Reset/power permission; authorized to reset, power on, and power off the server, and reboot RSC
You must have U level user permission to use this command. You can specify zero through four authorizations. The default authorization level for a new RSC account is none of the above.
If you do not specify authorization levels, RSC sets the permissions for username to read-only. However, the default user permission for the account you create during the installation procedure is cuar (full authorization).
A user with read-only permission can use the following commands only:
help
password
date (show only)
shownetwork
environment
loghistory
consolehistory
show
version
logout
The resetrsc command performs a hard reset of RSC. This terminates all current RSC sessions. You must have A level user permission to use this command. You can also reset RSC by using the rscadm resetrsc command.