Release Notes
Public Image Release Notes
Official End of Support Plan for the Operating System
Announcements
/etc/shadow or /etc/passwd file corresponding to the CVM instance account may not be properly configured. For example, attributes such as i or a are configured (indicating that data cannot be deleted or modified), causing the account password change not to take effect. In this case, only the password before the change can be used for login./etc/passwd file stores account information, and the /etc/shadow file stores password information. When the attributes of the /etc/shadow or /etc/passwd file are not properly configured, certain features of instances may not work normally. For example, the root account password change does not take effect./etc/shadow or /etc/passwd file are described as follows:Attribute | Description |
i | If the i attribute is set for a file, file deletion, file renaming, data addition, and data modification are not allowed.If the i attribute is set for a directory, only data modification for files under the directory is allowed, while file creation and deletion are not allowed. |
a | If the a attribute is set for a file, only data addition to the file is allowed, while data deletion and modification are not allowed.If the a attribute is set for a directory, only file creation and modification for the directory are allowed, while file deletion is not allowed. |
u | If the u attribute is set for a file or directory, the content is saved for recovery in the future if the file or directory is deleted.This attribute is generally used to prevent accidental deletion of files or directories. |
s | If the s attribute is set for a file or directory, the file or directory is completely deleted and cannot be recovered when it is deleted. |
e | The vast majority of files in Linux systems have the e attribute by default, indicating that these files are stored in the ext file system. |
/etc/shadow or /etc/passwd file as needed to solve the issue that changes to the root account password do not take effect./etc/passwd and /etc/shadow files./etc/shadow or /etc/passwd file prevent password changes from taking effect, but the original password can still be used for login.lsattr [file type] command to check and confirm whether the attributes of the /etc/shadow or /etc/passwd file are incorrect.i or a attribute, the file attributes are incorrect. Example:/etc/passwd file.lsattr /etc/passwd
/etc/passwd file has the i attribute (which prohibits data modification). This prevents password changes from taking effect. The i attribute needs to be removed from the file.
chattr command to modify the attributes of the /etc/shadow or /etc/passwd file.chattr [+-=] [attributes] file or directory name
i attribute from /etc/passwd. A sample command is as follows:chattr -i /etc/passwd

Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback