please(1)
π please(1) β the access elevation bestie π
okay so. bestie. let me tell you about please and pleaseedit, from the User Manual. this is the manual page for please(1) and it's lowkey one of my faves. sit down, grab a strawberry π, we're doing this.
β¨ NAME β¨
please β a tool for access elevation. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
here's every single way you can call it, exactly as written, no cap:
please /bin/bash
pleaseedit /etc/fstab
pleaseedit [-r/--reason "new fs"] /etc/fstab
pleaseedit [-g/--group groupname] filename
pleaseedit [-t/--target username] filename
pleaseedit [--resume] filename
please [-a/--allowenv list]
please [-c/--check] /etc/please.ini
please [-d/--dir directory] command
please [-e/--env environment] command
please [-g/--group groupname] command
please [-h/--help]
please [-t/--target username] backup tar -cvf - /home/data | ...
please [-u/--user username] backup tar -cvf - /home/data | ...
please [-l/--list]
please [-l/--list] [-t/--target username]
please [-l/--list] [-u/--user username]
please [-n/--noprompt] command
please [-r/--reason "sshd reconfigured, ticket 24365"] /etc/init.d/ssh
restart
please [-p/--purge]
please [-w/--warm]
look at that list. it's giving versatile. π
πΈ DESCRIPTION πΈ
okay so here's the tea, fr fr. please and pleaseedit are sudo alternatives that have regex support and a simple approach to ACL. that's the whole personality. π
the aim is to let admins delegate accurate principle of least privilege access with ease. please.ini allows for very specific and flexible regex defined permissions. so like, you get exactly the permissions you need and not one crumb more. obsessed. π
pleaseedit adds a layer of safety to editing files. here's how it goes down:
- the file is copied to
/tmp, where it can be updated π«Ά - when
EDITORexits cleanly the file is copied alongside the target π - the file will then be renamed over the original, but if an
exitcmdis configured it must exit cleanly first β οΈ resumewill continue editing whenexitcmdfails π
periodt.
π OPTIONS π
every single one, bestie. no skipping. β¨
-a/--allowenv listβ allow environments separated by,to be passed through π±-c/--check fileβ will check the syntax of aplease.iniconfig file. exits non-zero on error π¨-d/--dirβ will change directory to dir prior to executing the command π-g/--group groupnameβ run or edit as groupname π₯-h/--helpβ print help and exit π-l/--listβ to list rules π-n/--nopromptβ will not prompt for authentication and exits with a status of1π€-p/--purgeβ will purge your current authentication token for the running user π§Ή-r/--reason [reason]β will add reason to the system log π-t/--target [username]β to execute command, or edit as target username π―-u/--user [username]β to execute command, or edit as target username π―-v/--versionβ print version and exit π·οΈ-w/--warmβ will warm an authentication token and exit π₯
π EXAMPLE USAGE π
this is the part where it all clicks, iykyk:
please -t httpd /bin/bashβ run a shell as thehttpduser πplease -lβ to list what you may run πplease -t "username" -lβ to show what username may run. username must match the target regex in atype=listrule πplease -r 'reloading apache2, change #123' systemctl reload apache2β to reload apache2 with a reason π«pleaseedit -r 'adding new storage, ticket #24365' /etc/fstabβ to usepleaseeditto modify fstab π οΈ
and then, the plot twist: please see please.ini for configuration examples. π
π FILES π
/etc/please.ini
that's the one, bestie. that's where the magic lives. β¨
π«Ά CONTRIBUTIONS π«Ά
"I welcome pull requests with open arms. New features always considered."
literally so welcoming. the main character energy is immaculate. π
π BUGS π
found a bug? please either open a ticket or send a pull request/patch. we don't gatekeep fixes around here. π
β SEE ALSO β
go read it, it's the prequel. π¦
π AUTHORS π
Ed Neville (ed-please@s5h.net). a legend, no cap. π
and that's the whole manual, bestie!! remember: every flag, every default, every path β kept exactly as-is, because facts are facts and the vibe is just the wrapper. π
okay and before i go, the cute lil sign-off at the bottom said this was please version 0.5.6, dated 06 September 2024, and it's page please(1) from the User Manual. slay, happy elevating, mwah π
π
π¦ where this page comes from
- debian trixie: pleaser 0.5.6-1+b5 Β· GPL-3.0-or-later
- fedora 43: pleaser 0.5.6-4.fc43 Β· GPL-3.0-or-later AND Apache-2.0 AND MIT AND Unicode-DFS-2016
- fedora 43: pleaser 0.5.6-6.fc43 Β· GPL-3.0-or-later AND Apache-2.0 AND MIT AND Unicode-DFS-2016
- fedora 44: pleaser 0.5.6-6.fc44 Β· GPL-3.0-or-later AND Apache-2.0 AND MIT AND Unicode-DFS-2016
- ubuntu questing: pleaser 0.5.6-1
- ubuntu resolute: pleaser 0.5.6-2 Β· GPL-3.0-or-later
- ubuntu stonking: pleaser 0.5.6-2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms