Ask a Question related to Mac Programming, Design and Development.
-
Logan Murray #1
[Carbon] how do i get a list of users and groups??
hey all, i've been struggling to figure out how to get a list of users and
groups like the finder's get info window displays in its ownership &
permissions section.
i'm not too familiar with unix, and i'm using carbon to write this program
(on os x) and haven't found anything in apple's documentation (big surprise)
except for the function PBGetUGEntrySync which i can't get to work for the
life of me (i keep getting -50 errors for every possible variation of the
parameters).
if anyone out there knows how to do this (seemingly normal) task, please
post back.
thanks in advance,
logan
--
Logan Murray - [email]logan@electricstorm.com[/email]
AIM: MrCiv ICQ: 29648209
Logan Murray Guest
-
Selecting users that are in multiple groups
I am very new to ColdFusion and am having a light issue trying to select users that are in multiple groups... Basically, I want the sales people... -
Users login: Nested groups.
Hi there! If anyone could help me... thanks! My problem is this: our application controls the users login with Active Directory. It checks that... -
adding users to different groups
Hi group, I need to add a user (myself) to a group he doesn't belong to by default. On most unices I do edit the group file and voila. On the... -
local users and groups
When I try to access the Local Users and Groups, as the local administrator, there's an X, and I get an error message stating, Unable to access the... -
DirectoryEntry - enum users/groups...
Hi, Joe, Thank You for pointing me in the right direction. My apps now captures the user's password with a text box and retrieves the user's... -
Miro Jurisic #2
Re: [Carbon] how do i get a list of users and groups??
In article <BB8C1D09.DD28%logan@electricstorm.com>,
Logan Murray <logan@electricstorm.com> wrote:
getpwent and getgrent.> hey all, i've been struggling to figure out how to get a list of users and
> groups like the finder's get info window displays in its ownership &
> permissions section.
>
> i'm not too familiar with unix, and i'm using carbon to write this program
> (on os x) and haven't found anything in apple's documentation (big surprise)
> except for the function PBGetUGEntrySync which i can't get to work for the
> life of me (i keep getting -50 errors for every possible variation of the
> parameters).
hth
meeroh
--
If this message helped you, consider buying an item
from my wish list: <http://web.meeroh.org/wishlist>
Miro Jurisic Guest
-
David Phillip Oster #3
Re: [Carbon] how do i get a list of users and groups??
In article <macdev-8F44B0.09365816092003@senator-bedfellow.mit.edu>,
Miro Jurisic <macdev@meeroh.org> wrote:
In the "System" framework. Available to Mach-O programs, or, if you are> In article <BB8C1D09.DD28%logan@electricstorm.com>,
> Logan Murray <logan@electricstorm.com> wrote:
>>> > hey all, i've been struggling to figure out how to get a list of users and
> > groups like the finder's get info window displays in its ownership &
> > permissions section.
> >
> > i'm not too familiar with unix, and i'm using carbon to write this program
> > (on os x) and haven't found anything in apple's documentation (big surprise)
> > except for the function PBGetUGEntrySync which i can't get to work for the
> > life of me (i keep getting -50 errors for every possible variation of the
> > parameters).
> getpwent and getgrent.
>
> hth
>
> meeroh
using CFM, you can use:
CFURLCreateCopyAppendingPathComponent()
CFBundleCreate()
CFBundleLoadExecutable()
CFBundleGetFunctionPointerForName()
to get a function pointer you can execute out of the System framework.
(I'll post a sample code fragment if you want.)
getpwent and getgrent are documented with man pages. In a "Terminal"
window, say:
man getpwent
You can search the man database using
apropos
# or
man -k
But, you might need to run the command-line command
makewhatis
David Phillip Oster Guest



Reply With Quote

