[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-Modules] Users & Groups



if I understand correctly, there is no current way to access Mac Users &
Groups or FileSharing permissions readily from MacPerl?

I want to be able to say (pseudo Perl)

   chown "Vicki Brown", "All Users", "HD:Homes:Vicki";

Now Perl uses numeric user ID and group ID.  And numeric permission modes
as well.

I'm sure the Mac Users and groups have numbers... not sure how to get them
out. In Unix I would get the password file entry for a name with getpwnam
and then get the numeric ID and then...

It would seem that easy access to Users & Groups and FileSharing
permissions would be a great candidate for a glue module. I've recently had
reason to need to change this sort of stuff in an automated fashion and the
AppleScript was clunky (and I couldn't have done it at all without help!).

Am I embarking on a hopeless search? Is this feasible? (a module to access
FileSharing privs and stuff?)

Should I go read the Glue readme?

-- --
       |\      _,,,---,,_       Vicki Brown <vlb@cfcl.com>
 ZZZzz /,`.-'`'    -.  ;-;;,_   Journeyman Sourceror: Scripts & Philtres
      |,4-  ) )-,_. ,\ (  `'-'  P.O. Box 1269  San Bruno  CA  94066
     '---''(_/--'  `-'\_) http://www.cfcl.com/~vlb  http://www.macperl.org

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org