Set Sticky Bit on All World-Writable Directories
Scanned 9/3/2026
Install to Claude Code
npx -y skills add CyberStrikeus/CyberStrike --skill cis-ubuntu1204-v110-2-17 --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Cis Ubuntu1204 V110 2 17?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-ubuntu1204-v110-2-17)More formats (shields.io, HTML) on the badges page.
---
name: cis-ubuntu1204-v110-2-17
description: "Set Sticky Bit on All World-Writable Directories"
category: cis-os-hardening
version: "1.1.0"
author: cyberstrike-official
tags: [cis, ubuntu, 12.04, linux, filesystem, sticky-bit, permissions, world-writable]
cis_id: "2.17"
cis_benchmark: "CIS Ubuntu 12.04 LTS Server Benchmark v1.1.0"
tech_stack: [ubuntu, linux]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---
# 2.17 Set Sticky Bit on All World-Writable Directories (Scored)
## Profile Applicability
- Level 1
## Description
Setting the sticky bit on world writable directories prevents users from deleting or renaming files in that directory that are not owned by them.
## Rationale
This feature prevents the ability to delete or rename files in world writable directories (such as `/tmp`) that are owned by another user.
## Audit Procedure
### Using Command Line
```bash
df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -type d \( -perm -0002 -a ! -perm -1000 \) 2>/dev/null
```
## Expected Result
No output should be returned. If any directories are listed, the sticky bit is not set on them.
## Remediation
### Using Command Line
```bash
df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -type d -perm -0002 2>/dev/null | xargs chmod a+t
```
## Default Value
By default, the sticky bit is set on `/tmp` but may not be set on other world-writable directories.
## References
- CIS Ubuntu 12.04 LTS Server Benchmark v1.1.0
## Profile
Level 1 - Scored
Is this your skill, or is something wrong with this listing? . Author removals are honored within 72 hours.
No comments yet. Be the first to comment!