User Tools

Site Tools


groups:ensure_consistency_between_group_and_shadow_group_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
groups:ensure_consistency_between_group_and_shadow_group_files [2016/07/11 20:37] petergroups:ensure_consistency_between_group_and_shadow_group_files [2019/11/29 16:09] (current) – removed peter
Line 1: Line 1:
-====== 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. 
- 
-<code bash> 
-grpck 
-</code> 
- 
-Result: 
- 
-<code bash> 
-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 
-</code> 
- 
-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)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki