runuser

Run commands as a specific user and group without asking…

runuser

Run commands as a specific user and group without asking for password (needs root privileges).

runuser {{user}} -c '{{command}}'

runuser {{user}} -g {{group}} -c '{{command}}'

runuser {{user}} -l

runuser {{user}} -s {{/bin/sh}}

runuser {{user}} --preserve-environment -c '{{command}}'

Также может быть вам интересно:
LinuxFreeBSDТрюки BashТерминал/Консоль
← runsvdir rusnapshot →