This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Environment variables & system privilages


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]