Environment variables & system privilages

Brian Dessent brian@dessent.net
Mon Dec 6 18:37:00 GMT 2004

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.


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/

More information about the Cygwin mailing list