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:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=RDToz YE7YbONxExIlCUiCPjVmpJ06hJ8/8Odveox10pq8lXSG3nGnUz+nvLk0282KCM6k KIZce2muSq+L8wwY+MCvpRgMtcnIyR6IsckmJAHZF88CLHs0dJPszIae8WqMBxKC r59PPR0AmshWs35YD0o3/IlHzpJY0xxiR67Kvk= 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:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=vQ4WGRgDKNA ZysjpfbHhTBznpbw=; b=ND1eeo7jHu6SYRLw5iX9bnpFLLzJs1xNDfdxFAYcgl5 6JIOmQCSe63q5slQG6FpgR1CN4NkrJhgBpS/th7H1xdwUJFwqmpnkcqrE0QRg/zA uJb9ky3Gm5dOJGj+mH8S0D3cXSmMlunGPEUl25AMHWja5C+ESEN6uFMp0J1WBh0A = 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=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-in-11.arcor-online.net X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-14.arcor-online.net 3kdMw42vPRz4nSK From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: how to determine if a shell is running as Administrator? References: <20150205100349 DOT GS2635 AT calimero DOT vinschen DOT de> <87siekhaz6 DOT fsf AT Rainer DOT invalid> <20150205113926 DOT GT2635 AT calimero DOT vinschen DOT de> <8us6da1mc84clhtt2hgsliu2tor8mddcga AT 4ax DOT com> Date: Thu, 05 Feb 2015 15:44:04 +0100 In-Reply-To: <8us6da1mc84clhtt2hgsliu2tor8mddcga@4ax.com> (Andrew Schulman's message of "Thu, 05 Feb 2015 09:38:33 -0500") Message-ID: <877fvwh0zv.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Andrew Schulman writes: > OK, I see. Yes, when I Run as administrator I have > > $ id -G > 513 114 1007 1001 0 545 4 66049 11 15 113 4095 66048 262154 405504 > > which includes 0. Remove the /etc/group file or the line for the "root" group (or install /etc/nsswitch.conf and tell it to ignore those files) and that should be a thing of the past. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada -- 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