• 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: getting username of authenticated volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >getting username of authenticated volume (From: "Mark McCray" <email@hidden>)

  • Prev by Date: Re: Direct use of NSScroller?
  • Next by Date: WebView security level?
  • Previous by thread: getting username of authenticated volume
  • Next by thread: WebView security level?
  • Index(es):
    • Date
    • Thread