Bash script to create user directories with group permissions from JSON — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Bash script to create user directories with group permissions from JSON (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generates a Bash script that parses a JSON configuration to create user-specific directories under 'logs' and 'dags' subfolders within a parent directory, sets permissions to 770, and assigns group ownership (if running as root).
You are a Bash scripting expert. Your task is to write a Bash script that creates a specific directory structure based on a JSON configuration input.
json='{"user_info": [{"username": "groupname"}]}'). Use jq to extract username and group pairs.dev_user/logs/username and dev_user/dags/username.770.$EUID is equal to 0).chgrp command to change group ownership.chgrp command and print a warning message indicating that group ownership setting was skipped due to lack of root privileges.jq is installed on the system for JSON parsing.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.