public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Erik Soderquist <ErikSoderquist@gmail.com>
To: cygwin <cygwin@cygwin.com>
Subject: Re: equivalent to su or sudo?
Date: Sun, 30 Sep 2018 14:40:00 -0000	[thread overview]
Message-ID: <CACoZoo1YFv8k8T5F4v1KZ8xw=B0p-32HLZ3WKOtpVN1LuOyYtw@mail.gmail.com> (raw)
In-Reply-To: <20180817100101.GB24845@rus.uni-stuttgart.de>

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

      parent reply	other threads:[~2018-09-30 14:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-17 13:08 Ulli Horlacher
2018-08-17 13:36 ` john doe
2018-08-17 14:36   ` Ulli Horlacher
2018-08-17 17:15 ` Andrey Repin
2018-08-17 18:55 ` Achim Gratz
2018-08-18  3:50 ` David Rothenberger
2018-08-18 14:28   ` cyg Simple
2018-09-30 14:40 ` Erik Soderquist [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACoZoo1YFv8k8T5F4v1KZ8xw=B0p-32HLZ3WKOtpVN1LuOyYtw@mail.gmail.com' \
    --to=eriksoderquist@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).