Date: Mon, 11 Sep 2023 13:53:26 GMT From: "Jason W. Bacon" <jwb@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: c8c772b79247 - main - sysutils/runas: Run a command as another user Message-ID: <202309111353.38BDrQJf090129@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jwb: URL: https://cgit.FreeBSD.org/ports/commit/?id=c8c772b792472276cad9a08a4645c02d20171943 commit c8c772b792472276cad9a08a4645c02d20171943 Author: Jason W. Bacon <jwb@FreeBSD.org> AuthorDate: 2023-09-11 13:52:21 +0000 Commit: Jason W. Bacon <jwb@FreeBSD.org> CommitDate: 2023-09-11 13:52:21 +0000 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. --- sysutils/Makefile | 1 + sysutils/runas/Makefile | 17 +++++++++++++++++ sysutils/runas/distinfo | 3 +++ sysutils/runas/pkg-descr | 8 ++++++++ 4 files changed, 29 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index 58aac2410160..a9da345f2add 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1299,6 +1299,7 @@ SUBDIR += rubygem-winrm-elevated SUBDIR += rubygem-winrm-fs SUBDIR += rubygem-yell + SUBDIR += runas SUBDIR += rundeck3 SUBDIR += runiq SUBDIR += runit diff --git a/sysutils/runas/Makefile b/sysutils/runas/Makefile new file mode 100644 index 000000000000..8e6958686251 --- /dev/null +++ b/sysutils/runas/Makefile @@ -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> diff --git a/sysutils/runas/distinfo b/sysutils/runas/distinfo new file mode 100644 index 000000000000..a2232daf7d53 --- /dev/null +++ b/sysutils/runas/distinfo @@ -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 diff --git a/sysutils/runas/pkg-descr b/sysutils/runas/pkg-descr new file mode 100644 index 000000000000..37651a697d4d --- /dev/null +++ b/sysutils/runas/pkg-descr @@ -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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202309111353.38BDrQJf090129>