Function
This command is used to change the user profile bound to a user. When you
need to change the validity period of a user account or the permitted login time
range for a user, run this command. After this command is executed successfully,
the user can operate the system with the attributes defined in the new user
profile.
Usage Guidelines
- The activation time for a user name and password adopts the current system
time if it is null when the profile bound to the user is being modified.
NOTE:The activation time starts when a user is successfully created and ends when the user is bound with a user profile.
- The validity periods of user name and password in the four default user
profiles are as follows:
- The root profile: There is no validity limit on the user name and password.
- The admin profile: There is no validity limit on the user name. The validity period of the password is 100 days.
- The operator profile: The validity period of the user name and password is 50 days.
- The common user profile: The validity period of the user name and password is 30 days.
- When a superuer attempts to modify a bound user profile, the user must enter the original password.
Example
To modify the profile bound to user testUser, that is, to bind the user from
profile root to profile operator, do as follows:
When the activation time for the testUser user name and user password are not allocated, the system uses the current time as it.
Assume that the system has allocated the activation time for the testUser user name and user password.
When the activation time for the testUser user name and user password are not allocated, the system uses the current time as it.
huawei#terminal user user-profile User Name(<=15 chars):testUser Permitted user-profile[root]:operator Confirm user-profile:operator Configuration will take effect when the user logs on next time. The start time for the user name and password of the current user has been set to the current system time. Repeat this operation? (y/n)[n]:nTo modify the profile bound to user testUser, that is, to bind the user from profile root to profile operator, do as follows:
Assume that the system has allocated the activation time for the testUser user name and user password.
huawei#terminal user user-profile User Name(<=15 chars):testUser Permitted user-profile[root]:operator Confirm user-profile:operator Configuration will take effect when the user logs on next time Repeat this operation? (y/n)[n]:n
System Response
- The system does not display any message after the command is executed successfully.
- If the system has not allocated the user name of testUser nor the activation time of the user passwords, the system prompt that the current time is set as activation time of the user name and user passwords.
- For more information about the error message that the system displays against a command entered with incorrect syntax
No comments:
Post a Comment