Cleanup and clarify vipw

This commit is contained in:
Andrea Cardaci 2021-02-05 13:37:16 +01:00
parent 72c489bffa
commit 4f4207be13

View File

@ -1,13 +1,8 @@
--- ---
description: This command allows to edit some designated files (`/etc/passwd`, `/etc/group`, `/etc/shadow` and `/etc/gshadow`) safely by spawning the default editor (falling back to [`vim`](/gtfobins/vim/), other functions may apply). Despite requiring superuser privileges to run, the editor is executed as the unprivileged user when run as SUID or with `sudo`.
functions: functions:
file-write:
- code: |
vipw --passwd
vipw --shadow
suid: suid:
- code: | - code: ./vipw
./vipw --passwd
sudo: sudo:
- code: sudo vipw --shadow - code: sudo vipw
--- ---