GithubHelp home page GithubHelp logo

perturbedreverb / makemeanadmin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jamf/makemeanadmin

0.0 0.0 0.0 13 KB

Provides temporary admin access for a standard user via Jamf Self Service

Shell 100.00%

makemeanadmin's Introduction

Make Me an Admin!

This script, when run, will allow a standard user to upgrade themselves to an admin for 30 minutes and then will grab a snapshot of the logs for the past 30 minutes as well so you can track what they did.

The script will create a launch daemon to take care of demoting the user so that no matter how many times they log out or shut down, after 30 minutes of uptime, a script will be run to remove their admin privileges.

It is recommended to push this script as a policy to self service to run only once per day.

Edits: If you wish to tailor the script to your own needs, here is where to make the changes.

User Prompt: Line 24 | Plain text Default Message: You now have administrative rights for 5 minutes. DO NOT ABUSE THIS PRIVILEGE... Default Button: "Make me an admin, please!"

Time Frame for Admin Rights: Line 39 | Integer in seconds Default: 300 (5 minutes)

Time Frame for logs to be pulled: Line 81 | String after the "--last" flag in minutes Default: 5m

Location to save logs: line 81 | String after "--output" flag, must be valid directory Default: /private/var/userToRemove/$userToRemove.logarchive

makemeanadmin's People

Contributors

krypted avatar perturbedreverb 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.