Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Restriction to Remote Printer.

Status
Not open for further replies.

rude2

MIS
Jun 22, 2004
7
US
Hi,
We have SCO 5.0.5 and am using scoadmin. I'm trying to restrict some users to print to a remote printer.
Does anyone have any ideas???

Thanks in advance....

 
I am using SCO 5.0.6 and checked scoadmin. I don't know how much different they are, or if they are different at all but in ver 5.0.6 in scoadmin you go to printers->printer manager

then select the printer you want to restrict printing to, the in the top menus go to: settings->advanced->users...

that should bring up a window with two boxes allow and deny.
put the users you want to deny into the deny box.

but that is how to do it in version 5.0.6, I can't imagine they changed it that much.
 
Bonestein...
Thanks for your help . Found it. But it will not list the users. Displayed the following message:

"Unable to get list of allowed/denied users. Failed to retrieve following attributes -
=> printerAllowedUsers
=> printerDeniedUsers
General failure occurred in processing attribute printerAllowedUsers.
An execution procedure has failed with the message: too many nested calls to Tcl_Eval (infinite loop?)".

Thanks again....
Rudy

 
I am trying to do the same thing. From what I've read, /var/spool/lp/admins/lp/printers/<printername>/users.allow and users.deny files are supposed to allow you to restrict use of the printer. If you place user names in the users.allow file, only those users are allowed access.

However, I have not been able to get this to work. I have a few users in the users.allow file, one user in the users.deny file, just to be sure, but the user I have denied can still print. Anyone know why this is?
 
Try to have only one of allow or deny file.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Well, I deleted the users.deny, and bounced the print daemon. The user not in the users.allow can still print to the printer.
 
itfellow,

I don't have those two files present under the queue name. Did you just create them? Or are they generated by a command, on the command line?

Thanks..
 
In the lpadmin man page, take a look at the -u option.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
rude2,

I created them by hand for my remote printer. You can use the lpadmin -u option like PHV said (/usr/lib/lpadmin -p <printer> -u allow: <name1,name2,etc> OR /usr/lib/lpadmin -p <printer> -u deny:<name1,name2,etc>, which will create the file(s).

I've tried creating the file myself and entering the user names and using lpadmin (which ended up doing exactly the same thing) but neither has worked. Maybe there is something screwy on my system, though, so you can try it and let me know if it works on yours.
 
itfellow & PHV,
I did type in those parameters at command line and it looked like it took. No error messages appeared. But user still able to print to the printer. Do I need to lpshut and then lpstart??

Thanks....
 
rude2,

Yes, do lpshut then lpsched, just to be sure. Then test the printing with an unauthorized user. Let me know if it works.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top