delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/06/14:02:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Mon, 6 Dec 2004 14:02:13 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Environment variables & system privilages
In-Reply-To: <41B4A7D9.3ADA0F94@dessent.net>
Message-ID: <Pine.GSO.4.61.0412061400240.3217@slinky.cs.nyu.edu>
References: <41B1A1C4 DOT 6020102 AT ieee DOT org> <Pine DOT GSO DOT 4 DOT 61 DOT 0412041531410 DOT 3217 AT slinky DOT cs DOT nyu DOT edu> <41B305B2 DOT 7030805 AT ieee DOT org> <41B4A7D9 DOT 3ADA0F94 AT dessent DOT net>
MIME-Version: 1.0

On Mon, 6 Dec 2004, Brian Dessent wrote:

> Jason Pearce wrote:
>
> > Thanks. This works well enough. But I take it there is no universal
> > command to check for system permissions.
> > The procedure is just try a command that needs system privilages and
> > watch the exit status.
>
> Well, if you really want to check for this you could try comparing the
> output of "id -u" to 18, the UID of the SYSTEM account.  I don't know if
> the system account's id varies across different versions (eg 98 vs.
> 2k3), though.
>
> Brian

AFAIU, those aren't the "system privileges" that Jason meant -- I think he
just wanted to test whether his user has permission to write to the HKLM
registry tree.  The best way to test that is to try actually writing
something (which is exactly what "mount" does).

Also, there is no SYSTEM account on 9x.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019