less
Shell
This executable can spawn an interactive system shell.
- This function can be performed by any unprivileged user.
less /etc/hosts!/bin/shThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.less /etc/hosts!/bin/shThis 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.less /etc/hosts!/bin/sh - This function can be performed by any unprivileged user.
LESSOPEN="/bin/sh -s 1>&0 2>&0 # %s" less /etc/hostsresetThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.LESSOPEN="/bin/sh -s 1>&0 2>&0 # %s" less /etc/hostsreset - This function can be performed by any unprivileged user.
VISUAL='/bin/sh -s --' less /etc/hostsvThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.VISUAL='/bin/sh -s --' less /etc/hostsv
Command
This executable can run non-interactive system commands.
- This function can be performed by any unprivileged user.
cp /path/to/command ~/.lessfilterless /etc/hosts - This function can be performed by any unprivileged user.
LESSOPEN='/path/to/command # %s' less /etc/hostsThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.LESSOPEN='/path/to/command # %s' less /etc/hosts
File write
This executable can write data to local files.
- This function can be performed by any unprivileged user.
echo DATA | lesss/path/to/output-fileqThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.echo DATA | lesss/path/to/output-fileqThis 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.echo DATA | lesss/path/to/output-fileq
File read
This executable can read data from local files.
- This function can be performed by any unprivileged user.
less /path/to/input-fileThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.less /path/to/input-fileThis 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.less /path/to/input-file - This function can be performed by any unprivileged user.
less /etc/hosts:e /path/to/input-fileThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.less /etc/hosts:e /path/to/input-fileThis 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.less /etc/hosts:e /path/to/input-file - This function can be performed by any unprivileged user.
LESSOPEN='echo /path/to/input-file # %s' less /etc/hostsThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.LESSOPEN='echo /path/to/input-file # %s' less /etc/hosts
Inherit
This executable can inherit functions from another.
- This function can be performed by any unprivileged user.
less /etc/hostsvThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.less /etc/hostsvThis 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.less /etc/hostsv