lpd.perms is a dense. Why not make it easier on yourself by not using files to indicate your hosts and users for starters? Have you read man lpd.perms? I would start out with DEFAULT REJECT ACCEPT SERVICE=X REMOTEIP=00.00.00.00/255.25.255.0 REMOTEUSER=user1,user2 ACCEPT SERVICE=X SERVER and so on. It is not clear to me if you have to use more than just X. You may need: ACCEPT SERVICE=X,P,R,Q,M,C,S etc depending on what permissions you want to allow. The man page take the opposite tack, accepting all but then rejecting anyone but the allowed hosts and usrs, making it hard to follow, but maybe it is the better guide. You make no mention of services other than X in your lpd.perms. You have no DEFAULT line. Does this mean that all other services are allowed by default or turned off?
Joel On Tue, Jan 29, 2002 at 08:13:17PM +0200, Petrov M.I. wrote: > HI ALL. > I am using LPRng 3.8.2-1 from Debian. I want to permit printing to server from > some host and some users on this host and server. How do this do? > I have following in my lpd.perms file: > ACCEPT SERVICE=X SERVER > ACCEPT SERVICE=X REMOTEIP=</etc/lprng/rejecthosts \ > REMOTEUSER=</etc/lprng/rejectusers > REJECT SERVICE=X > On one of remote computer : lpq > `no connect permissions > Without REMOTEUSER - this wokrs correctly. > When I am using only REMOTEUSER - lpq > `no connect permissions > Help me! > Thanks. > > ----------------------------------------------------------------------------- > YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST > The address you post from MUST be your subscription address > > If you need help, send email to [EMAIL PROTECTED] (or lprng-requests > or lprng-digest-requests) with the word 'help' in the body. For the impatient, > to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] > with: | example: > subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] > unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] > > If you have major problems, send email to [EMAIL PROTECTED] with the word > LPRNGLIST in the SUBJECT line. > ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
