Re: getting username of authenticated volume
Re: getting username of authenticated volume
- Subject: Re: getting username of authenticated volume
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 2 Oct 2008 18:57:45 +0200
On Oct 2, 2008, at 6:30 PM, Mark McCray wrote:
Hey there,Is there a way to figure out what username was used to log
on to a
mounted volume by knowing the volume name
Yes.
With statfs:
uid_t f_owner; /* user that mounted the file system */
you then just need to transform the uid to a username.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden