This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [ITA] - base-files
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: Mailing List: CygWin-Apps <cygwin-apps at cygwin dot com>
- Date: Wed, 09 Feb 2011 10:42:16 -0500
- Subject: Re: [ITA] - base-files
- References: <AANLkTikhjMLByD-0dsrj8d6LdOF4uRvvQg2bNvC3zAQ6@mail.gmail.com> <AANLkTikhjMLByD-0dsrj8d6LdOF4uRvvQg2bNvC3zAQ6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> <20110106212428.GA11567@jethro.local.lan> <t0fci69l9t7c53278fcajag0s0kc7qmegl@4ax.com> <20110110170805.GB3413@calimero.vinschen.de> <20110110184016.GA13647@jethro.local.lan> <20110111084522.GB13976@calimero.vinschen.de> <AANLkTi=a31_RGKCtdfwi-89r840sdLA-RwMvFtvYKSrx@mail.gmail.com> <AANLkTikL3RdDVWUHhJQ39CjseBS0y38V_Q-x7rBQfWTE@mail.gmail.com> <20110112092716.GA10154@calimero.vinschen.de> <20110206214031.GB6839@jethro.local.lan>
- Reply-to: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
On 2/6/2011 4:40 PM, David Sastre wrote:
> I have a question yet: is there a consistent way of knowing
> the GID of users with administrative privileges (from a windows
> perspective) so that could be used to add /usr/sbin to their paths?
AFAIK, this requires Win32 C code. Take a look at the code in winsec.c
that is part of cygwin's login package -- and how it is used in login.c
to determine Administrator membership (see "isROOT_UID()" in login,.c).
It's possible some part of this functionality could be added to an
executable utility in cygutils or csih, but...should base-files really
depend on either of those packages? Maybe instead, base-files should
also ship some new utility .exe for this purpose in /usr/bin/?
> Would that be useful?
Maybe, but admin user accounts can always add /usr/sbin themselves, in
~/.bash_profile or ~/.bashrc. (I usually don't bother, and just invoke
sbin progs by full path). Dunno if it's worth the effort.
--
Chuck