From owner-freebsd-questions@FreeBSD.ORG Sat Jul 7 20:18:10 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 90C1716A41F for ; Sat, 7 Jul 2007 20:18:10 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 34D0313C44B for ; Sat, 7 Jul 2007 20:18:08 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.8/8.12.11) with ESMTP id l67KBlbt095929; Sat, 7 Jul 2007 15:11:47 -0500 (CDT) Message-Id: <6.0.0.22.2.20070707150546.02535328@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Sat, 07 Jul 2007 15:10:45 -0500 To: "Lisa Casey" , From: Derek Ragona In-Reply-To: <003b01c7c0b4$e01a3a50$d5b9bfcf@lisac> References: <003b01c7c0b4$e01a3a50$d5b9bfcf@lisac> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Adding a new command 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: Sat, 07 Jul 2007 20:18:10 -0000 At 11:35 AM 7/7/2007, Lisa Casey wrote: >Hi, > >Once I get this new system going I promise I'll quit pestering you folks :-) > >Got another question. This should be simple to answer. I've done this >before but can't seem to replicate it this morning. I have a few scripts >my employees use to do things such as add a new radius user, restart the >radius server and tail the radius log file. The most simple one is >radlog. The file radlog contains the line: >tail -f /var/log/radius.log > >I need to be able to type radlog from anywhere on the system and have it work. > >I put the file radlog in /bin (/bin and /sbin are all in my shell's >path). Ownership is root/wheel permissions are 555 (I've tried 700 and >777 - these don't need write access though). But when I type radlog I get >command not found. I can type ./bin/radlog and it works but I don't want >that. I thought if the file was in my path and if it was executable just >typing the name of the file from anywhere would work but evidently I'm >overlooking something. What? > >Thanks, > >Lisa Casey Try testing with a new login session. It is likely your shell is caching the commands in your paths. You can easily test after logging in and try the which command: which radlog On the permissions, you would do well to setup a special group to execute the commands making it easier for users to execute them without being root. If your new utilities are working with log files be sure the log files are readable by this group as well. As previously mentioned added user commands are customarily placed in /usr/local/bin doing so will aid any new sysadmin looking for them. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.