Re: logout and auto-login
Re: logout and auto-login
- Subject: Re: logout and auto-login
- From: Finlay Dobbie <email@hidden>
- Date: Sun, 9 Dec 2001 10:38:21 +0000
On Sunday, December 9, 2001, at 09:14 am, Jake wrote:
What is a preferred method to log the user out of the system
programmatically? I tried kill(-1, x). It did indeed log the user out.
However, this rendered the system to an unusable state, as now the login
just hangs with the progress bar spinning.
You could kill the windowserver, but that's a bit evil. I'm not sure of
the recommended way of doing it, in fact, I wouldn't be surprised if
there was no recommended way of doing it -- why are you doing it?
Also what exactly happens behind the scene when a user modifieds the
"Automatically Login As" checkbox in the login preference? Is it set
in the NI database, the user preference or some system preference?
It's /localconfig/autologin in NetInfo. (key = "username", value =
"theusernametologinas")
-- Finlay