From owner-freebsd-bugs Mon Mar 11 2:30: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E551637B416 for ; Mon, 11 Mar 2002 02:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2BAU1K39104; Mon, 11 Mar 2002 02:30:01 -0800 (PST) (envelope-from gnats) Received: from degennes.pc.tu-clausthal.de (degennes.pc.tu-clausthal.de [139.174.150.42]) by hub.freebsd.org (Postfix) with ESMTP id 5B33F37B402 for ; Mon, 11 Mar 2002 02:26:50 -0800 (PST) Received: (from root@localhost) by degennes.pc.tu-clausthal.de (8.11.6/8.11.6) id g2BAQXN05804; Mon, 11 Mar 2002 11:26:33 +0100 (CET) (envelope-from ili) Message-Id: <200203111026.g2BAQXN05804@degennes.pc.tu-clausthal.de> Date: Mon, 11 Mar 2002 11:26:33 +0100 (CET) From: Ilshat Gubaidullin Reply-To: Ilshat Gubaidullin To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: misc/35770: Why there is no /usr/local/bin in PATH variable in /etc/rc? Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35770 >Category: misc >Synopsis: Why there is no /usr/local/bin in PATH variable in /etc/rc? >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Mar 11 02:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Ilshat Gubaidullin >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: Platform i386, hardware independent, all releases since FreeBSD-4.1.1-RELEASE, all Samba releases since 2.0.7, all LPRng releases since 3.7.3. >Description: LPRng-printing system install their lpr, lpc and other binaries in /usr/local/bin by default. When Samba starts without /usr/local/bin in PATH env.variable and printing is set to lprng in Samba configurations file then Samba starts without error messages but printing from clients will fail with no error message to client and not very intelligible message in samba logfile: --------samba log by loglevel 6-------- [2002/03/11 11:19:42, 3] printing/print_generic.c:print_run_command(88) Running the command `lpr -s -r -PHP870Cxi smbprn.000121.YPtfMW' gave 127 [2002/03/11 11:19:42, 5] smbd/files.c:file_free(339) freed files structure 4673 (0 used) [2002/03/11 11:19:42, 4] smbd/dosmode.c:set_filetime(331) set_filetime(/var/spool/samba/smbprn.000121.YPtfMW) failed: No such file or di rectory --------end of samba log --------------- >How-To-Repeat: Move lpr and lpc from /usr/bin to /usr/local/bin and try to get samba printing after reboot... >Fix: add /usr/local/bin in PATH variable in /etc/rc. Why /usr/local/sbin is added and /usr/local/bin is not? There are many other ways to fix it, but for newbies is extremely difficult to find it out and it is possible that other scripts in /usr/local/etc/rc.d will wokr incorrectly without /usr/local/bin in PATH variable... >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message