daemonthingies/setruid.1

26 lines
609 B
Groff

.Dd Jul 11, 2018
.Dt setruid 1
.Os
.Sh NAME
.Nm setruid
.Nd set the real UID for a command
.Sh SYNOPSIS
.Nm
.Ar command
.Op Ar arguments
.Sh DESCRIPTION
.Nm
sets the real UID while keeping the effective UID the same. It is indended for
simple servers that need to bind on a low port and drop privileges by setting
effective UID to real UID.
.Pp
.Nm
executes the given command as the same process.
.Sh EXIT STATUS
.Nm
will exit with status 1 if it fails to set the UID or execute the given command.
If it is succesful, exit status will be that of the given command.
.Sh AUTHORS
.Nm
has been written by nortti.