From nobody Mon Sep 11 13:53:26 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rkp8Q738vz4t6HX; Mon, 11 Sep 2023 13:53:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rkp8Q6d2Mz4XL5; Mon, 11 Sep 2023 13:53:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694440406; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=InSOdmuo+JwtSV/QQQ5kaK5sZ+9GE69EX8A1FAvXDGk=; b=LvHkfjvhNYRRsdr+Cg2gDDOhyiy0xgAEa608a3Lm64TWWZZo79R/7vb1MKU0G8KqX7HnR3 pDBjAQxdrtkUFaLAYfSa2UsY2anV3ylrua8OWbXPM5yW2OtZaGbVo1yherbUH6iPL6uRK4 fOTH0BrOcTiKZ70ZRrDhMT1TECJ2POv1fYhMei3iJrjaQLOJBcwz1E0nC888Fy0gHmMxr7 VWjhqskzKDy2PgoL6OO8HS08oYzdl909zJ4mv64hrAQBwTW9wxjJEp4Ao3scZ/zVmn3AGg 8QE7RVTmwHwHtep9pq0YaqmogDGLA8LtrP4La0FH9zHc2BfKJpRqyByj0HbDHA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694440406; a=rsa-sha256; cv=none; b=LreED/DXA8M6k/31lNHzP4NFo9Fz+F4hUjI+6iu9waaf1bPJm6hy1WoOLgnSYoGiAtlvwM wmjTmh3IeAbIu3wDqZg0/DLviS1TqdEjAeiahW448X90vCB/GJtxFt7Oai/kHHLzHYeJVW abWm7IdZIJ1A/QhjZYGHzIExiK3aD7GHyo4qmfQptZk6oTRAdi1stcl5dQT4Groa6bNeMW bWkTvIq2DSXN6AqFieqqjtSFJKg1PWPTHKm+XoLolHuUqKbJK4gFq+T079YqJ/n+bXsgK4 2wVTD9xLPLPTTrNSjkyqZEdOzF0LvrtdsS6f9GpjDFJOrimFIU73y+m2/16WzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694440406; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=InSOdmuo+JwtSV/QQQ5kaK5sZ+9GE69EX8A1FAvXDGk=; b=o5o/3K21JbaEEoU0uY1Cqf7sDjIfXRACDKnG1y0cgF+bCuG4LxYrYsyV3qkLgwJxFPqV5I ZRWO7Hyp7AgGH3gVECswtklX9uqQn0cUhOowJgTsmYSjvn7PG+qwgHWXFIz44gF2DOkFtA 3yTfSSyz7q592+iI6D4TdHCcrojBgGxE0oVaD/scrKYSnlZvLC5yLCcS2KGzPn5PUD9ltL cMdcqnH3osAaMhBBFFvuskrT7QQ5OE+/pB3kLaJujqOd0XTrjk8F+IrVfVBwN07cxA14bk jXnD4C9g7oZ1Owa7VB/V2k139sGhxKukX+/r6IK0twOigtf01NviGD90CtSewA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Rkp8Q5Ngnzs0m; Mon, 11 Sep 2023 13:53:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38BDrQL6090132; Mon, 11 Sep 2023 13:53:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38BDrQJf090129; Mon, 11 Sep 2023 13:53:26 GMT (envelope-from git) Date: Mon, 11 Sep 2023 13:53:26 GMT Message-Id: <202309111353.38BDrQJf090129@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Jason W. Bacon" Subject: git: c8c772b79247 - main - sysutils/runas: Run a command as another user List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jwb X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c8c772b792472276cad9a08a4645c02d20171943 Auto-Submitted: auto-generated The branch main has been updated by jwb: URL: https://cgit.FreeBSD.org/ports/commit/?id=c8c772b792472276cad9a08a4645c02d20171943 commit c8c772b792472276cad9a08a4645c02d20171943 Author: Jason W. Bacon AuthorDate: 2023-09-11 13:52:21 +0000 Commit: Jason W. Bacon 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 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.