Open Menu
Close Menu
Apple
Shopping Bag
Apple
Mac
iPad
iPhone
Watch
TV
Music
Support
Search apple.com
Shopping Bag
Lists
Open Menu
Close Menu
Terms and Conditions
Lists hosted on this site
Email the Postmaster
Tips for posting to public mailing lists
Re: will this code test if a user is in a group?
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: will this code test if a user is in a group?
Subject
:
Re: will this code test if a user is in a group?
From:
email@hidden
Date: Fri, 18 Jul 2008 11:17:54 -0400
Jeremy:
Yes, the dsmemberutil will be my preferred method of doing this - but I did not know about it at the time of writing the script.
The script does not output the group information... just the results.
Charles Profitt
Sr. Network Technician
BrainBench Certified - (Master)Microsoft Security | (Master)Storage Area Networks Concepts | (Master)Microsoft Vista Desktop Administration | (Master)Macintosh OS X 10.4 Desktop Administration
75 Barker Road
Pittsford, NY 14534
Important Notice:
This communication, including any attachments, is intended only for the use of the individual(s) or entity(s) to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of any part of this communication in any format is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this communication and deleting the original and any automatically generated copies. Thank-you for your co-operation.
Jeremy Reichman <email@hidden>
Sent by: applescript-users-bounces+chas_profitt=email@hidden
07/18/2008 10:36 AM
To
<email@hidden>
cc
Subject
Re: will this code test if a user is in a group?
It is highly preferable to use dsmemberutil/dseditgroup over "id," and you
use those utilities to test by name or GID.
For the difference between 57 and 570, I suppose it all comes down to how
you construct your regular expressions.
If all of your systems are tied to the same directory service, then the GIDs
should map -- an Active Directory group should have the same GID on all Macs
joined to that directory, for example.
However, if you're testing for local groups that are not part of the default
install, then the GIDs could potentially be different on each system
depending on how (and in what order) they were created.
Also, if your script will output text, you may want to specify the absolute
path to the "echo" command. Leopard has changed the behavior of shell
built-ins like "echo" for POSIX compliance. Specifying /bin/echo Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives:
http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References:
>
Re: will this code test if a user is in a group?
(From: email@hidden)
>
Re: will this code test if a user is in a group?
(From: Jeremy Reichman <email@hidden>)
Prev by Date:
Re: Hiding a compiled script
Next by Date:
Mostly broken- Applescript + Leopard + Filemaker 6
Previous by thread:
Re: will this code test if a user is in a group?
Next by thread:
how to create scriptable preference pane with anchors?
Index(es):
Date
Thread