The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 CUPS - disabling stock lpr
Author: Rob 
Date:   15-11-02 02:54

Regarding step 8 --

It's a bad idea to put /usr/local/bin ahead of /usr/bin in your path. It can make it easier to trojan your system -- a rogue program (or person) could slip a script named "ls" in your /usr/local/bin and "hijack" your commands. Granted, this would require permission... but people tend to be a lot more lax about /usr/local.

Also, it could cause you to execute the wrong version of a command if you have more than one version installed.

A better Step 8 would be:

8a. Move all of the lpr-related binaries out of /usr/bin into a new directory that is not in the normal execution path. You may want to tar up the directory.
8b. Edit /etc/make.conf and uncomment the line that contains "NO_LPR=true". This will prevent make from installing the lpr components when you rebuild the system from source.

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 CUPS - disabling stock lpr   new
Rob 15-11-02 02:54 
 Re: CUPS - disabling stock lpr   new
Gerard Samuel 27-11-02 14:14 
 Re: CUPS - disabling stock lpr   new
g2k 30-11-02 15:44 
 Re: CUPS - disabling stock lpr   new
Luis 25-12-02 18:46 
 Re: CUPS - disabling stock lpr   new
Steven 27-12-02 19:11 
 Re: CUPS - disabling stock lpr   new
Gerard Samuel 27-12-02 19:18 
 Re: CUPS - disabling stock lpr   new
deman 28-12-02 23:07 
 Re: CUPS - disabling stock lpr   new
JoeBob 29-08-03 04:04 
 Re: CUPS - disabling stock lpr   new
Steven Friedrich 23-08-04 21:44 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum