Find and remediate files and directories without a valid group owner
Scanned 9/3/2026
Install to Claude Code
npx -y skills add CyberStrikeus/CyberStrike --skill cis-ubuntu1404-v210-6-1-12 --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Cis Ubuntu1404 V210 6 1 12?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-ubuntu1404-v210-6-1-12)More formats (shields.io, HTML) on the badges page.
---
name: "CIS Ubuntu 14.04 LTS - 6.1.12 Ensure no ungrouped files or directories exist"
description: "Find and remediate files and directories without a valid group owner"
category: "cis-os-hardening"
version: "2.1.0"
author: "cyberstrike-official"
tags:
- cis
- ubuntu
- ubuntu-14.04
- level-1
- scored
- file-permissions
cis_id: "6.1.12"
cis_benchmark: "CIS Ubuntu Linux 14.04 LTS Benchmark v2.1.0"
tech_stack:
- ubuntu
- linux
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: "medium"
---
# 6.1.12 Ensure no ungrouped files or directories exist (Scored)
## Profile Applicability
- Level 1 - Server
- Level 1 - Workstation
## Description
Sometimes when administrators delete users or groups from the system they neglect to remove all files owned by those users or groups.
## Rationale
A new user who is assigned the deleted user's user ID or group ID may then end up "owning" these files, and thus have more access on the system than was intended.
## Audit Procedure
Run the following command and verify no files are returned:
```bash
df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -nogroup
```
The command above only searches local filesystems, there may still be compromised items on network mounted partitions. Additionally the `--local` option to `df` is not universal to all versions, it can be omitted to search all filesystems on a system including network mounted filesystems or the following command can be run manually for each partition:
```bash
find <partition> -xdev -nogroup
```
## Expected Result
No output should be returned.
## Remediation
Locate files that are owned by users or groups not listed in the system configuration files, and reset the ownership of these files to some active user on the system as appropriate.
## Default Value
Not applicable.
## References
None
## CIS Controls
14 Controlled Access Based on the Need to Know - Controlled Access Based on the Need to Know
## Profile
- Level 1
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!