Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Feb 2010 17:01:04 -0800
From:      Rob Farmer <rfarmer@predatorlabs.net>
To:        Erik Norgaard <norgaard@locolomo.org>
Cc:        questions@freebsd.org
Subject:   Re: Howto run privileged commands on login/logout
Message-ID:  <b025ceb71002061701k2d189eaandd841c598338ca95@mail.gmail.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
On Sat, Feb 6, 2010 at 4:55 PM, Erik Norgaard <norgaard@locolomo.org> wrote=
:
> Hi:
>
> 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)
> - on logout a system reboot to clean up any temporary files left from the
> session.

Not sure if it would work or not but you could try setting
/etc/csh.logout setuid root (or whatever). However, IIRC, there are
security concerns with setuid scripts (I remember previous list
discussions about setuid shell scripts but don't remember what the
verdict was).

--=20
Rob Farmer

>
> Is this possible, without messing arround with sudo or adding users to wh=
eel
> or operator groups?
>
> Thanks, Erik
>
> --
> Erik N=F8rgaard
> Ph: +34.666334818/+34.915211157 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0http:/=
/www.locolomo.org
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b025ceb71002061701k2d189eaandd841c598338ca95>