X-Recipient: archive-cygwin AT delorie DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 DOT soderquist AT gmail DOT com In-Reply-To: <20180817100101.GB24845@rus.uni-stuttgart.de> References: <20180817100101 DOT GB24845 AT rus DOT uni-stuttgart DOT de> From: Erik Soderquist Date: Sun, 30 Sep 2018 10:40:28 -0400 Message-ID: Subject: Re: equivalent to su or sudo? To: cygwin 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 AT 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