X-Recipient: archive-cygwin@delorie.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=faith, administrator, D*localhost, courage
X-HELO: mail-wr1-f50.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20161025;        h=mime-version:sender:in-reply-to:references:from:date:message-id         :subject:to;        bh=Sdiv8E1Yp7CUMFHZUlF3IvmFUSRj7aiPZPBUWF2U3vg=;        b=EVJyu4WLIIajdX11zQoLVqzJt0SSMVUlDxMEELL4idwsQoGn3TW7UMyOPb5ozpwO2T         iQ5flviAk+5y62zqE3IoQfz+CmomPo2tLrrfMl0QTz2GOLyiVnxRZc/2BrB/jeJvUlXG         4z0YDp6qv38O6RPEhVHV0F8qPJ8BGvj61wlWgRwMireJeFxkpIoi8Fz9/gUTqT+DPmex         33niczPRK7CuSptIW394hig5hPQqyRlnHzJERlqUL4c6aA+74BayWruu2jXkmU1TpOcO         MGyVNsC4ptqmzLF7fHIlSMbzzyLvQbJhyHRS3xEV29fEdo2MT76yohgVZ94V6BuhU7FC         268A==
MIME-Version: 1.0
Sender: erik.soderquist@gmail.com
In-Reply-To: <20180817100101.GB24845@rus.uni-stuttgart.de>
References: <20180817100101.GB24845@rus.uni-stuttgart.de>
From: Erik Soderquist <ErikSoderquist@gmail.com>
Date: Sun, 30 Sep 2018 10:40:28 -0400
Message-ID: <CACoZoo1YFv8k8T5F4v1KZ8xw=B0p-32HLZ3WKOtpVN1LuOyYtw@mail.gmail.com>
Subject: Re: equivalent to su or sudo?
To: cygwin <cygwin@cygwin.com>
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes

On Fri, Aug 17, 2018 at 6:01 AM, Ulli Horlacher wrote:
> I need to run some scripts with full administrator rights (for chown,
> chmod, setfacl).
> Is there a cygwin equivalent to su or sudo?

I've actually found that after installing and configuring sshd as a
service, "ssh localhost" gives me an elevated shell without any hassle
(I'm part of the local admins group; you may have to modify to "ssh
admin@localhost").  If you want to use this as a replacement for
'sudo' without having ssh open to the network, modify your sshd
configuration to only accept localhost connections and as an added
layer, make sure your firewall denies all incoming network traffic to
sshd

-- Erik


--
"I do not think any of us are truly sane, Caleb. Not even you. Courage
is not sanity. Being willing to die for someone else is not sanity."
... "Love is not sane, nor is faith." ... "If sanity lacks those
things, Caleb, I want no part of it."

-- Alexandria Terri in "Weaving the Wyvern" by Alexis Desiree Thorne

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

