Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Feb 2010 19:45:12 -0800
From:      perryh@pluto.rain.com
To:        norgaard@locolomo.org
Cc:        questions@freebsd.org
Subject:   Re: Howto run privileged commands on login/logout
Message-ID:  <4b6e3748.uodc5baNdIuDUSwW%perryh@pluto.rain.com>
In-Reply-To: <4B6E0F66.4060707@locolomo.org>
References:  <4B6E0F66.4060707@locolomo.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Erik Norgaard <norgaard@locolomo.org> wrote:
> I'm playing around with diskless operation. I'd like to be able
> to run privileged commands when a user logins or logs out:
>
> - on login, nfs mount the user's home directory (ok, not critical,
> I can mount /home)

Or, better yet, use an automounter.

> - on logout a system reboot to clean up any temporary files left
> from the session.

I'm not aware of any existing, simple method to handle this part.
It might not be all that difficult to hack something into getty(8)
or init(8).  Another possibility would be to clean /tmp and /var/tmp
in the .logout script, which should not require any special privs.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4b6e3748.uodc5baNdIuDUSwW%perryh>