From owner-freebsd-questions@FreeBSD.ORG Tue Apr 13 21:13:01 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 675F116A4CE for ; Tue, 13 Apr 2004 21:13:01 -0700 (PDT) Received: from zoot.lafn.org (zoot.lafn.ORG [206.117.18.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32B8343D5A for ; Tue, 13 Apr 2004 21:13:01 -0700 (PDT) (envelope-from bc979@lafn.org) Received: from [10.0.1.90] (host-66-81-192-83.rev.o1.com [66.81.192.83]) (authenticated bits=0) by zoot.lafn.org (8.12.3p3/8.12.3) with ESMTP id i3E4Cupl065124 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Tue, 13 Apr 2004 21:12:59 -0700 (PDT) (envelope-from bc979@lafn.org) Mime-Version: 1.0 (Apple Message framework v613) In-Reply-To: <20040413235143.4c2cb911@it.buh.cameradicommercio.ro> References: <20040413235143.4c2cb911@it.buh.cameradicommercio.ro> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <035C9EBA-8DCA-11D8-958E-000393681B06@lafn.org> Content-Transfer-Encoding: 7bit From: Doug Hardie Date: Tue, 13 Apr 2004 21:12:58 -0700 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.613) X-Virus-Scanned: ClamAV version 'clamd / ClamAV version devel-20040209', clamav-milter version '0.66m' Subject: Unusual login requirement X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2004 04:13:01 -0000 I am trying to figure out how to implement an unusual login requirement and haven't found a good approach yet. What I need is to have a specific user id that when it is logged in it executes a specific script and then immediately logs out. Basically what it needs to do is run a make that builds a CD from a bunch of files and then burns the CD. Obviously a blank CD would need to be in the burner first. I don't want a general login as this would be used by a person who should not have access to the system. I just need him to be able to burn a CD frequently. My first throught was to create a script and set it as the shell in the passwd file and add it to /etc/shells. Is that the best approach? I am not concerned about the user breaking out of the script as he is trusted. I just don't want to create a regular user account for him. The server is running FreeBSD 4.6. Thanks, -- Doug