From owner-freebsd-questions@FreeBSD.ORG Wed Jan 17 10:49:42 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47A7C16A412 for ; Wed, 17 Jan 2007 10:49:42 +0000 (UTC) (envelope-from george.vanev@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.226]) by mx1.freebsd.org (Postfix) with ESMTP id 0C8BA13C428 for ; Wed, 17 Jan 2007 10:49:41 +0000 (UTC) (envelope-from george.vanev@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so2314904wxc for ; Wed, 17 Jan 2007 02:49:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=mQZRlZphD1xzyknN0XrpwPPzxJ63ascjj6HkdQ/lq5HHgaQ7EjH3TVQMBHFaJRX2XF9YMUYjEVm2cVYhnBc2phMjBr8wxnuHKdDPVnMMWMU670PNthUHqT3Lc56L3Mm+Ft/ak/AxRBdI8JSQx0NbOx36IWXOPwvdVonkFKmGQSw= Received: by 10.70.29.7 with SMTP id c7mr12422690wxc.1169030981264; Wed, 17 Jan 2007 02:49:41 -0800 (PST) Received: by 10.70.12.14 with HTTP; Wed, 17 Jan 2007 02:49:41 -0800 (PST) Message-ID: <6f4f57f60701170249w39a5976bu24b42bd93c150165@mail.gmail.com> Date: Wed, 17 Jan 2007 12:49:41 +0200 From: "George Vanev" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Execute script every time a specified user logs in (FreeBSD 6.1) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: George.Vanev@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 10:49:42 -0000 Every time user X (for example) logs in the system I want to be executed some script. The user must not have the permission to change this behavior. Also the script must be run as root. Something like crontab, but depending on logins, not time Any ideas?! -- George Vanev