ubuntu:groups:ensure_consistency_between_group_and_shadow_group_files
Ubuntu - 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 'john' is a member of the 'sshusers' group in /etc/group but not in /etc/gshadow 'root' is a member of the 'tomcat' 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 'john' to the 'sshusers' group in /etc/gshadow manually.
- We don't want root to belong to the 'tomcat' group, so we remove this from /etc/gshadow.
ubuntu/groups/ensure_consistency_between_group_and_shadow_group_files.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1