forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
4.4 KiB
4.4 KiB
Setting the Validity Period of an Account
Precautions
When creating a user, you need to specify the validity period of the user, including the start time and end time.
To enable a user not within the validity period to use its account, set a new validity period.
Procedure
- Run the following command to create a user and specify the start time and end time.
1
CREATE USER joe WITH PASSWORD 'password' VALID BEGIN '2015-10-10 08:00:00' VALID UNTIL '2016-10-10 08:00:00';
- If the user is not within the specified validity period, run the following command to set the start time and end time of a new validity period.
1
ALTER USER joe WITH VALID BEGIN '2016-11-10 08:00:00' VALID UNTIL '2017-11-10 08:00:00';
Parent topic: Setting Security Policies