AW: How to get the user or his rights?

Tiemo Hollmann TB toolbook at kestner.de
Mon Mar 26 02:38:52 EDT 2012


Hi Bob,
thanks for your hints.
For windows standalones you can set the UAC Execution Level to "require
Admin". So LC knows, who's logged in. I wonder, if we can retrieve this
information from LC?
Tiemo

> -----Ursprüngliche Nachricht-----
> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] Im Auftrag von Bob Sneidar
> Gesendet: Freitag, 23. März 2012 18:01
> An: How to use LiveCode
> Betreff: Re: How to get the user or his rights?
> 
> Okay so ID -G in OS X returns a space delimited list of groups the user
> belongs to. If 80 is in that list, then he is an admin. You can use the
> form ID -p and the results will be human readable, but you can't just look
> for admin because other groups may contain the string admin, like _lpadmin
> for example.
> 
> I am not going to dig into how to do this on Windows.
> 
> Bob
> 
> 
> On Mar 23, 2012, at 12:41 AM, Tiemo Hollmann TB wrote:
> 
> > Hello,
> >
> > I have some configuration in my program which I would like to show
> > only to the admin and not to a standard user.
> >
> > Is there a way to read the logged in user from the system or his
> > permission level (win & mac)? I didn't find anything in the docs. Or
> > is there another approach to differentiate between users?
> >
> > Thanks
> >
> > Tiemo
> >
> >
> >
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list