startas
Startas is a command‑line utility found on some Unix‑like operating systems that allows a user to launch a program under the identity or privilege level of another user or group. It was originally created to provide a safer alternative to the traditional “su” command when only a limited set of users or groups should be granted the ability to start privileged processes. The tool can be invoked from a shell prompt, a script, or an automated system configuration.
The basic syntax of startas is: startas [options] –u user –g group command [arguments]. The –u and
Startas is designed to mitigate privilege escalation risks by enforcing an explicit, reviewable set of permissions.
Installation of startas typically involves compiling from source or installing a package from a distribution’s repository.