sysutils/runas: Run a command as another user

Runas is a tool for running commands as another user.  It is an
alternative to "sudo", which has a history of serious security issues,
and "su", which is inconvenient for anything but running a shell.

The runas command is a simple wrapper around "su" to streamline its
use.  It differs from "sudo" in that it requires the password of the
target user rather than the calling user, and it requires no SUID
permissions or configuration.
This commit is contained in:
Jason W. Bacon 2023-09-11 08:52:21 -05:00
parent bd7f364e44
commit c8c772b792
4 changed files with 29 additions and 0 deletions

View file

@ -1299,6 +1299,7 @@
SUBDIR += rubygem-winrm-elevated
SUBDIR += rubygem-winrm-fs
SUBDIR += rubygem-yell
SUBDIR += runas
SUBDIR += rundeck3
SUBDIR += runiq
SUBDIR += runit

17
sysutils/runas/Makefile Normal file
View file

@ -0,0 +1,17 @@
PORTNAME= runas
DISTVERSION= 0.1.1
CATEGORIES= sysutils
MAINTAINER= jwb@FreeBSD.org
COMMENT= Wrapper around su for running a command as another user
WWW= https://github.com/outpaddling/runas
LICENSE= BSD2CLAUSE
USE_GITHUB= yes
GH_ACCOUNT= outpaddling
PLIST_FILES= bin/runas man/man1/runas.1.gz
.include <bsd.port.mk>

3
sysutils/runas/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1694440086
SHA256 (outpaddling-runas-0.1.1_GH0.tar.gz) = d30c99b9f0935df3fe9a91ba3683d667acb1458751836b1145cac7b781a5753c
SIZE (outpaddling-runas-0.1.1_GH0.tar.gz) = 4084

8
sysutils/runas/pkg-descr Normal file
View file

@ -0,0 +1,8 @@
Runas is a tool for running commands as another user. It is an
alternative to "sudo", which has a history of serious security issues,
and "su", which is inconvenient for anything but running a shell.
The runas command is a simple wrapper around "su" to streamline its
use. It differs from "sudo" in that it requires the password of the
target user rather than the calling user, and it requires no SUID
permissions or configuration.