Symptoms:
update_microservice.log: Log path: /var/log/vmware/applmgmt/update_microservice.log
YYYY-MM-DD HH:MM:SS,952 - 31360 - functions::runCommand:71 - ERROR - Exception: Return code: [1], Stdout:
/usr/sbin/groupadd -f -g 59010 vcdbusers /usr/bin/getent passwd vpxd
/usr/sbin/usermod.bk -a -G vcdbusers vpxd usermod.bk: cannot open /etc/shadow
VMware vCenter Server 7.0.3
usermod.bk command failed because the /etc/shadow file contains an unexpected attribute, preventing modification of user group membership.
In this scenario, usermod.bk command failed because the /etc/shadow file had the immutable (i) attribute set, preventing modifications.
Remove the immutable attribute, which restores the file to its default state (e only), allowing the command to execute successfully and the vCenter to be patched.
lsattr /etc/shadow → -----i--------e----- /etc/shadow (i indicates the file is immutable)sudo chattr -i /etc/shadow
lsattr /etc/shadow → --------------e----- /etc/shadow (only e attribute remains)Note:
Attribute 'i'(immutable) prevents any changes to the file.