• 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: Fast User Switching in Panther...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fast User Switching in Panther...


  • Subject: Re: Fast User Switching in Panther...
  • From: Dave Camp <email@hidden>
  • Date: Fri, 1 Aug 2003 10:18:50 -0700

On Friday, August 1, 2003, at 09:33 AM, Alec Carlson wrote:

> Is there an API which allows an application to track who the current
> user is
> ? It doesn't seem like the logged in user is logged out when a user
> switch
> occurs. So, how can an app find out who the current user is when a user
> switch occurs ? SCDynamicStoreCopyConsoleUser( NULL, &uid, &gid )
> returns
> the logged in user not the current user.

Why do you need to know? What are you trying to accomplish?

I'm not sure there is a concept of a "current user". Processes
typically run as the user that launched them, or run as a special user
if need. For example, there are processes on your machine running as
you, root, www (if you have web sharing on), etc. If someone logged in
via ssh, they would have processes running as their user as well.

Dave
---
It is dark; you are likely to be eaten by a grue. -Zork
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Fast User Switching in Panther...
      • From: Wade Tregaskis <email@hidden>
    • App won't quit on logout
      • From: John Pattenden <email@hidden>
    • Re: Fast User Switching in Panther...
      • From: Alec Carlson <email@hidden>
References: 
 >Fast User Switching in Panther... (From: Alec Carlson <email@hidden>)

  • Prev by Date: Re: Centering a view in an NSScrollView
  • Next by Date: Re: replaceFirstOccurenceOf?
  • Previous by thread: Re: Fast User Switching in Panther...
  • Next by thread: Re: Fast User Switching in Panther...
  • Index(es):
    • Date
    • Thread