Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2002 11:26:33 +0100 (CET)
From:      Ilshat Gubaidullin <gubaidullin@pc.tu-clausthal.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/35770: Why there is no /usr/local/bin in PATH variable in /etc/rc? 
Message-ID:  <200203111026.g2BAQXN05804@degennes.pc.tu-clausthal.de>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203111026.g2BAQXN05804>