Skip to content

Command `compaudit-fixer` that repairs file owners and permissions on zsh scripts

Notifications You must be signed in to change notification settings

SixArm/compaudit-fixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

compaudit-fixer

When the compaudit command prints warnings, then fix them.

Usage:

compaudit | compaudit-fixer

Examples:

$ compaudit
There are insecure directories and files:
/usr/local/share/zsh/foo
/usr/local/share/zsh/goo/hoo

$ compaudit | compaudit-fixer
There are insecure directories and files:
+ sudo chown user:group /usr/local/share/zsh/foo
+ sudo chmod 750 /usr/local/share/zsh/foo
+ sudo chown user:group /usr/local/share/zsh/goo/hoo
+ sudo chmod 750 /usr/local/share/zsh/goo/hoo

Implementation

This script sets the user and group:

  • The user is the current system real user

  • The group is the first match of these: root, wheel, admin.

This script sets the permissions to 750.

About

Command `compaudit-fixer` that repairs file owners and permissions on zsh scripts

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages