ubuntu:groups:ensure_consistency_between_group_and_shadow_group_files

This is an old revision of the document!


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.1575043772.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki