From owner-freebsd-questions@FreeBSD.ORG Sat Nov 29 14:50:07 2003 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 1349E16A4CE for ; Sat, 29 Nov 2003 14:50:07 -0800 (PST) Received: from clanbuckbuck.org (12-211-125-56.client.attbi.com [12.211.125.56]) by mx1.FreeBSD.org (Postfix) with SMTP id C9D1543FDD for ; Sat, 29 Nov 2003 14:50:05 -0800 (PST) (envelope-from ryallsd@datasphereweb.com) Received: (qmail 46310 invoked from network); 29 Nov 2003 22:50:05 -0000 Received: from unknown (HELO bartxp) (192.168.1.2) by 12-211-125-56.client.attbi.com with SMTP; 29 Nov 2003 22:50:05 -0000 From: "Derrick Ryalls" To: Date: Sat, 29 Nov 2003 14:49:58 -0800 Message-ID: <000b01c3b6cb$1d74dc40$0201a8c0@bartxp> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: Running as a certain user 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: Sat, 29 Nov 2003 22:50:07 -0000 I am running a Counter Strike server on a 4.7 FreeBSD box, and I recently got it all working running as a normal user (had been running as root). The game is installed in a users' homedir and eventually I will be revoking login rights to the user in question to furthur minimize risk. To do this, I need to be able to run the scripts as the user instead of whoever is logged in as. The structure of the scripts is like this: master script (start stop, public private args) | run_hlds wrapper script ( command line args for hlds_run ) | hlds_run ( Valve prog ) All three of the above scripts are owned by the isolated user and have been chmod'ed to 6755. When I log in as a different user and try to run the scripts, I get permission issues and am unable to fire off the game server. What I need is to be able to run it on demand as the isolated user like a crontab entry. Any ideas on what I am missing? TIA