/please

Really tiny sudo replacement

Primary LanguageCBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Please - really tiny sudo replacement

'Please' aims to be little sudo without bells and whistles. Only pam authentication and executing command.

Name please fits into unix naming conventions. Where we have daemon instead of background process. We are killing processes, not closing processes. Now we can please to run privileged process.

Examples

Reboot system by unprivileged user:

$ please reboot

To get a file listing of an unreadable directory:

$ please ls /usr/local/protected

Run a root shell:

$ please -

Installation on Debian / Ubuntu

  1. Install git, compiler and libpam-dev: apt-get install git build-essential libpam0g-dev
  2. Clone repository: git clone https://github.com/gblach/please.git
  3. Build and install: make && make install
  4. Install (and edit) pam rules: cp pam.d/please.Debian /etc/pam.d/please

Installation on Fedora

  1. Install git, compiler and pam-devel: dnf install git gcc pam-devel
  2. Clone repository: git clone https://github.com/gblach/please.git
  3. Build and install: make && make install
  4. Install (and edit) pam rules: cp pam.d/please.Fedora /etc/pam.d/please

Installation on openSUSE

  1. Install git, compiler and pam-devel: zypper install git gcc make pam-devel
  2. Clone repository: git clone https://github.com/gblach/please.git
  3. Build and install: make && make install
  4. Install (and edit) pam rules: cp pam.d/please.openSUSE /etc/pam.d/please

Installation on FreeBSD

From package

pkg install please

From source

  1. Install git: pkg install git or make install clean -C /usr/ports/devel/git
  2. Clone repository: git clone https://github.com/gblach/please.git
  3. Build and install: make && make install
  4. Install (and edit) pam rules: cp pam.d/please.FreeBSD /usr/local/etc/pam.d/please