FUNI(1)

NAME
funi - change user and group ids and exec a program or a shell

SYNOPSIS
funi [ -u user ] [ -U user ] [ -G user ] [ -g group ] [ -c chroot ] [ -Z ] [ command [ args... ] ]

DESCRIPTION

Set user and group ids to the indicated values (65534 if not specified), reset the extended group list to the null list (unless told not to -Z or told to reset it to another users group list -U -G ) and exec $SHELL (if SHELL is not in the evironment, then /bin/sh) unless a command is specified to be run in the remaining command line arguments.

The different between -U and -G is that -U will also reset the uid to the specified user in addition to setting the group list

-c chroot give you the ability to run the command in the indicated chrooted environment

SEE ALSO

fnu(1) chroot(8) su(1)

DIAGNOSTICS

A short help message is printed if an unknown flag is specified, the flags are used incorrectly, or if an invalid command is entered.

RETURNS

funi
    will return 1 if an incorrect user or group name was entered. 2 if a getopt error occured.