Giter Club home page Giter Club logo

chacl's Introduction

chacl

Set ACL recursively on files and folder from an easy to read configuration (macOS only).

How to Use?

First you have to create a config file which will describe the different ACLs to apply to which folders and files.

Then, simply run chacl --admin-username admin /path/to/config/file. The admin username is required, because ACLs are added for it to be able to access everything whatever the configuration file says.

Here is an example config file:

###################################################################
# File format is as follow:                                       #
# ([u|g]: user-or-group-name: [r|rw]:)*  :/path/to/file-or-folder #
#                                                                 #
# Note: File and folders in this file should have                 #
# permission 0000 and be owned by the admin user.                 #
###################################################################

# This gives the user bob.kelso the permission to read and write in his folder.
u: bob.kelso: rw:  :/Volumes/TheBigRAID/File Sharing/Users/bob.kelso

# Nobody can either read or write in this folder.
:/Volumes/TheBigRAID/File Sharing/Users/fired.guy

# Public groups. Everybody can read, only the people in the group can write.
g: staff-all: r:  g:    staff-tech: rw:  :/Volumes/TheBigRAID/File Sharing/Teams/staff-tech
g: staff-all: r:  g: staff-finance: rw:  :/Volumes/TheBigRAID/File Sharing/Teams/staff-finance
                  g:     staff-all: rw:  :/Volumes/TheBigRAID/File Sharing/Teams/staff-all
# Private group. Only the people in the group can read (and write).
g: staff-finance: rw:  :/Volumes/TheBigRAID/File Sharing/Teams/staff-finance-private

chacl's People

Contributors

frizlab avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.