Coder Social home page Coder Social logo

user_group.cr's Introduction

user_group.cr

Docs GitHub release Build Status

Adds System Users and Groups.

Installation

Add this to your application's shard.yml:

dependencies:
  user_group:
    github: chris-huxtable/user_group.cr

Usage

require "user_group"

Adds features like:

  • Process.become(System::User.get("nobody"))
  • Process.become(System::Group.get("nobody"))
  • Process.user
  • Process.group
  • System::User.get("root").shell
  • System::Group.get("wheel").members
  • a_pointer.to_slice_null_terminated(a_limit) (useful for converting the Char** to an Array(String))

Contributing

  1. Fork it ( https://github.com/chris-huxtable/user_group.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

user_group.cr's People

Contributors

chris-huxtable avatar jrester avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

didactic-drunk

user_group.cr's Issues

Missing getuid and setresuid

Will you accept a PR to add the following:

  • Process.setresuid
  • Process.setresuid
  • Process.user_id
  • Process.group_id
  • Process.effective_user_id
  • Process.effecive_group_id

Basically this with the names conforming to your project.

I got tired of fighting for crystal user/group PR acceptance and would prefer to not maintain my own shard.

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.