项目作者: gblach

项目描述 :
Really tiny sudo replacement
高级语言: C
项目地址: git://github.com/gblach/please.git
创建时间: 2012-07-20T09:40:24Z
项目社区:https://github.com/gblach/please

开源协议:Other

下载


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:

  1. $ please reboot

To get a file listing of an unreadable directory:

  1. $ please ls /usr/local/protected

Run a root shell:

  1. $ please -

Installation on Debian / Ubuntu

  1. apt-get install git build-essential libpam0g-dev
  2. git clone https://github.com/gblach/please.git
  3. cd please/
  4. make && make install
  5. cp pam.d/please.Debian /etc/pam.d/please

Installation on Fedora / CentOS / Alma / Rocky

  1. dnf install git gcc pam-devel
  2. git clone https://github.com/gblach/please.git
  3. cd please/
  4. make && make install
  5. cp pam.d/please.Fedora /etc/pam.d/please

Installation on openSUSE

  1. zypper install git gcc make pam-devel
  2. git clone https://github.com/gblach/please.git
  3. cd please/
  4. make && make install
  5. cp pam.d/please.openSUSE /etc/pam.d/please

Installation on ArchLinux

  1. pacman -S git gcc make
  2. git clone https://github.com/gblach/please.git
  3. cd please/
  4. make && make install
  5. cp pam.d/please.Fedora /etc/pam.d/please

Installation on FreeBSD / DragonFly

From package

  1. pkg install please

From source

  1. make install clean -C /usr/ports/devel/git
  2. git clone https://github.com/gblach/please.git
  3. cd please/
  4. make && make install
  5. mkdir -p /usr/local/etc/pam.d/
  6. cp pam.d/please.BSD /usr/local/etc/pam.d/please

Installation on NetBSD

  1. pkgin install git ca-certificates
  2. git clone https://github.com/gblach/please.git
  3. cd please/
  4. make && make install
  5. cp pam.d/please.BSD /etc/pam.d/please