From owner-freebsd-questions@FreeBSD.ORG Sun Feb 7 01:01:07 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17DCE106566C for ; Sun, 7 Feb 2010 01:01:07 +0000 (UTC) (envelope-from rfarmer@predatorlabs.net) Received: from mail-qy0-f194.google.com (mail-qy0-f194.google.com [209.85.221.194]) by mx1.freebsd.org (Postfix) with ESMTP id D49AC8FC19 for ; Sun, 7 Feb 2010 01:01:05 +0000 (UTC) Received: by qyk32 with SMTP id 32so449100qyk.12 for ; Sat, 06 Feb 2010 17:01:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.66.216 with SMTP id o24mr1716050qai.357.1265504464996; Sat, 06 Feb 2010 17:01:04 -0800 (PST) X-Originating-IP: [128.95.133.133] In-Reply-To: <4B6E0F66.4060707@locolomo.org> References: <4B6E0F66.4060707@locolomo.org> Date: Sat, 6 Feb 2010 17:01:04 -0800 Message-ID: From: Rob Farmer To: Erik Norgaard Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: questions@freebsd.org Subject: Re: Howto run privileged commands on login/logout X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2010 01:01:07 -0000 On Sat, Feb 6, 2010 at 4:55 PM, Erik Norgaard 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" >