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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=nIzzRyZ2nrgPzAAoP9h+nrR/zRZhcoMBADIiGFt5DDj oPCRh67waxrl2XEVJHQlYgbEsg0tKCL52V2Q6jsKpM672y7ZC8icCNSJ+LZSmrVy dak7FxvtdV0128i7hbvfbq889We/AisrdBm5YOBZ3wECZfXXgFmHPKFYzTETXmfk = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=0WkunlE6Y1bpCCf4HolkmIejCkg=; b=x5HBEmtNN7d49L5SI nbKsbT2cDm46aSSN93QKvgBfQOpnX/Zl+1otx4GTgX0d2rl+xtv6uwpPg2tf1npE uEfaf0wh/dBHoa6wL3pcEQ49fhcOu37ze0+owBWIE5J4sicfP6j1mbxH6YZTylF6 vaIPi8z90lNJ5pUfB6q5aAO5Pg= 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: etr-usa.com Message-ID: <525DC436.8040103@etr-usa.com> Date: Tue, 15 Oct 2013 16:39:50 -0600 From: Warren Young User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Cygwin-L Subject: Re: Root/Administrator privileges from cygwin terminal References: <21085 DOT 47545 DOT 572257 DOT 639431 AT consult DOT pretender> In-Reply-To: <21085.47545.572257.639431@consult.pretender> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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