groups:ensure_consistency_between_group_and_shadow_group_files
This is an old revision of the document!
Groups - Ensure consistency between group and shadow group files
There should be consistency in /etc/group and /etc/gshadow.
Run the grpck command to check that these two files reconcile.
grpck
Result:
no matching group file entry in /etc/gshadow add group 'sambasecureshare' in /etc/gshadow? y 'peter' is a member of the 'sshusers' group in /etc/group but not in /etc/gshadow 'root' is a member of the 'libvirtd' group in /etc/gshadow but not in /etc/group
As can be seen there are a number of inconsistencies.
Lets fix these.
Action:
- Accept the offer to add the group 'sambasecureshare' in /etc/gshadow by entering a 'y' and pressing enter.
- Add 'peter' to the sshusers group in /etc/gshadow manually.
- We don't want root to belong to the libvirtd group, so we remove this from /etc/gshadow.
groups/ensure_consistency_between_group_and_shadow_group_files.1468269454.txt.gz · Last modified: 2020/07/15 09:30 (external edit)