Date: Sun, 7 Feb 2010 02:40:24 +0100 From: Pieter de Goeje <pieter@degoeje.nl> To: freebsd-questions@freebsd.org Subject: Re: Howto run privileged commands on login/logout Message-ID: <201002070240.24935.pieter@degoeje.nl> 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 Sunday 07 February 2010 01:55:02 Erik Norgaard 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) This can be done using amd(8). Check out the example section in amd.conf(5). > - on logout a system reboot to clean up any temporary files left from > the session. Not sure why you would want to reboot the entire system but simply doing "chmod +s /sbin/shutdown" should give all users access to the shutdown(8) command. > > Is this possible, without messing arround with sudo or adding users to > wheel or operator groups? -- Pieter de Goeje
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002070240.24935.pieter>