diff options
author | Jesse Buhagiar <jooster669@gmail.com> | 2021-04-14 12:23:55 +1000 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-05-29 22:33:12 +0430 |
commit | 82b48d867ddc490760bb57e8260d2679a9f329ec (patch) | |
tree | d6405f0c5c249afa320a2f5bdfb444b957ebc147 /Base | |
parent | ea33e9647bec2d549b6a1a60fa9f4caf315aca92 (diff) | |
download | serenity-82b48d867ddc490760bb57e8260d2679a9f329ec.zip |
Userland: Implement `pls`, a sudo clone
Diffstat (limited to 'Base')
-rw-r--r-- | Base/etc/sudoers | 4 | ||||
-rw-r--r-- | Base/usr/share/man/man8/pls.md | 41 |
2 files changed, 45 insertions, 0 deletions
diff --git a/Base/etc/sudoers b/Base/etc/sudoers new file mode 100644 index 0000000000..a301b3aac1 --- /dev/null +++ b/Base/etc/sudoers @@ -0,0 +1,4 @@ +# sudoers file +# Put any users you want to allow to run programs as root here +root +anon diff --git a/Base/usr/share/man/man8/pls.md b/Base/usr/share/man/man8/pls.md new file mode 100644 index 0000000000..3bf540d374 --- /dev/null +++ b/Base/usr/share/man/man8/pls.md @@ -0,0 +1,41 @@ +## Name + +pls - Execute a command as root + +## Synopsis + +```**sh +$ pls [command] +``` + +## Description + +Executes a command as the root user (uid and gid 0), given that the user executing `pls` is located in +the sudoers file. + +It is possible to execute commands that contain hyphenated options via the use of `--`, which signifies the +end of command options. For example: + +```sh +$ pls -- ls -la +``` + +## Files +/etc/sudoers - List of users that can run `pls` + +## Examples + +```sh +$ pls whoami +Password: +root +$ +``` + +```sh +$ pls sh +Password: +# whoami +root +# +``` |