www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:in-reply-to:references:from:date | |
:message-id:subject:to:content-type; q=dns; s=default; b=yr9vmxi | |
MiJCNLTCMG/fNTJCBws7/jV7crWYp8eSGzGbPseGLtQ/9nuSXynM9MaE8HaukLgP | |
2XD7iNCEHXKo1tFZju6qPPt0DBtqZNtWCy3n9o9EVJxVcX4haHeIG/F+J5vsWW+t | |
e8poo0qEK+aUgd4es65ak1+yFXB/29GGz0gA= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:in-reply-to:references:from:date | |
:message-id:subject:to:content-type; s=default; bh=D9rs4P6tyb0pk | |
+FSHUPaAHvaGqo=; b=JaKXTyIS6dh0mqkTXsUl3FME1Y73yOKsPFjWTWsWhtupT | |
P7rqESM7Q5vUDZnvRRkC4xk1F55Pi3Y+xiHut2vZe5yXD1CFQh+30Tev2UyzrpOi | |
w5sDAj9JEDLwP/qq2WdInmm/NR6Qy+UagPO8FeLmfXiu8X3uD75B/YcQzLRito= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 |
X-HELO: | kautler.net |
X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=P5CtFxhIF/Naz0B77QIsTBr9LWb2K8o9ihD7HHNK9wI=; b=I//ZNSUDUrYWjkTnP+L8QUpPKJhJR3bSZotOKHvMJzrcSzNWm+pAeIsMfgf3yMDXKE XMPcJhlqJbkc1ugK3XrhH9gV0V80uTKQQI30CZKOKUPZIqgGtBh6SMWb+eLsczfbaFXY lKH6sFjdrL0cvsH9+Q54w2G9YBP4pTPoOoVeq+ljiIXPj15tI+hOu87oIZmN50uXQMzf 8MTyiK9snmKQ8ha7xhfNS2H3OcwqnMldFkEP1/IhZ7/mC++14ppETm9u3njG6sL4Jm7M qV6OAg2OpuYtuYzD2xL/PCs8uXzAH5IeSxsHt7e5g1qJdGC4kaZf/EiCyMbq0zEzmUgm 4TwQ== |
X-Received: | by 10.42.40.83 with SMTP id k19mr1002090ice.3.1381913271179; Wed, 16 Oct 2013 01:47:51 -0700 (PDT) |
MIME-Version: | 1.0 |
In-Reply-To: | <525DC436.8040103@etr-usa.com> |
References: | <21085 DOT 47545 DOT 572257 DOT 639431 AT consult DOT pretender> <525DC436 DOT 8040103 AT etr-usa DOT com> |
From: | =?ISO-8859-1?Q?Bj=F6rn_Kautler?= <Bjoern AT Kautler DOT net> |
Date: | Wed, 16 Oct 2013 10:47:31 +0200 |
Message-ID: | <CAKChYSqqX1CwsRu_MpjysdbE=1ZO4EGac8uwn+-_1fo9N72S9A@mail.gmail.com> |
Subject: | Re: Root/Administrator privileges from cygwin terminal |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
If you are using Bash within ConEmu, you can do many cool additional stuff, in your case you could restart the bash with administrator privileges by mouse or shortcut, or you could start a new bash with administrator privileges by mouse or shortcut, or you could start a new bash with administrator privileges from within a running one with "bash -new_console:a", or you could start directly start an arbitrary program in a new ConEmu tab with administrator privileges with "some_program -new_console:a", or you could use the ConEmu-shipped command csudo which effectively also uses the -new_console switch with some more options like creating a split to have both programs in the same tab, ... :-) 2013/10/16 Warren Young <warren AT etr-usa DOT com>: > On 10/15/2013 15:55, someone at kosowsky.org wrote: >> >> programs like 'regedit' just hang. > > > There is a known incompatibility between Cygwin and interactive native Win32 > console mode programs. (e.g. regedit, ftp...) The Cygwin developers know > about it and are likely thinking about ways to fix it. > > The trick is that the incompatibility exists in order to make Cygwin > programs work better with each other. Therefore, if you can find a Cygwin > way to do what you're after, you will avoid these problems. > > In the case of the registry, use either regtool(1) or /proc/registry: > > http://goo.gl/kOjlkt > > >> The only solution I have now is to open a new bash window as >> administrator. >> So is there a way to elevate (or change) privileges from with a bash >> shell? > > > That's the method I use, too. > > >> 2. Is there any better way to determine that one has Administrator >> privileges than to run something like: >> id -G | grep -Eq '<\544\>' >> Or: >> [[ `id -G` =~$(echo "\<544\>") ]] > > > The Windows security system is vastly more complicated than what you find on > *ix systems. Administrator really isn't equivalent to POSIX root. The > default Administrator login in Windows simply has a default set of > capabilities that gives it a limited root-like set of powers. You can turn > another user into an Administrator equivalent -- or a user with even more > power! -- piece by piece. > > Therefore, there won't be a single command that tells you if you have > root-like privileges. You'd have to test for the bag-o-features you need. > > > -- > 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 > -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |