mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
Userland: Implement pls
, a sudo clone
This commit is contained in:
parent
ea33e9647b
commit
82b48d867d
6 changed files with 262 additions and 0 deletions
41
Base/usr/share/man/man8/pls.md
Normal file
41
Base/usr/share/man/man8/pls.md
Normal file
|
@ -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
|
||||
#
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue