[news.sysadmin] User Restriction for UUX

rsw@ihlpe.ATT.COM (Wedeman) (07/30/87)

I administer a 3B2/400 for a small group of users.  The attached laser
printer has become a hot commodity in our building, since the comp
center takes about an hour to produce any output and our printer provides
output in less than 10 minutes.  My machine is networked to the main
machines in the building, so now any user on any machine can forward
their print requests to my laser printer.  So what started out as a
resource for our group, is now the comp center for any one who knows
about it.

My question is:  Does anyone know how to restrict users on these other
machines from accessing my printer?  I can restrict particular machines
from accessing my machine, but have yet to find a way to restrict
particular users.  

Any help would be appreciated.  

Robin Wedeman
312/979-8426
ihlpe!rsw

Karl.Kleinpaste@cbstr1.att.com (07/31/87)

Any recent 3B2/400 is running HDB UUCP, which means good things for
you.  I suggest you create a shell script to use in place of your
existing lp program.  In the shell script, test the value of the
variables LOGNAME, UU_MACHINE, and UU_USER.  Most important of these
is the last, UU_USER, which is the login name of the issuing user on
the requesting machine.  If the USER/MACHINE name pair is not someone
you like, your script can bounce his request back at him to say,
"You're not allowed to do that."  If the USER/MACHINE user is someone
you DO like, call the real (but now renamed) lp script with normal
arguments and all should be well.

Karl