LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to show message to user denied to print (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-show-message-to-user-denied-to-print-592862/)

I_like_TUX 10-18-2007 05:50 PM

how to show message to user denied to print
 
I am trying deny printer access to certain Windows(R)users. I setup the printer in CUPS to deny access to such user. When that user print, CUPS didn't queue the job because that user is denied. However, from the user point of view, he/she see no message and it seems to him/her that the job was printed.

I think all Samba do is to pass the job to CUPS, then CUPS denies the job and that's why for the user, the job was sent (but not queued).

I would like to ask how can I inform the user that his/her print job is not accepted? Is there something I need to configure in Samaba? Right now I have printer part of smb.conf as:

[printers]
path=/var/spool/samba
printable=Yes
browseable=No

What I would like to have is some pop-up message for the user. Does anyone has any suggestion? Sorry, I am not good in Samba. If this question is too "newbie", please point me to some docs./FAQs. Thank you.

/bin/bash 10-19-2007 01:00 PM

Just an idea but try blocking port 631 for all the windows machines in your firewall.
block windowsIP:631
Then they should at least get a connection refused.

I_like_TUX 10-19-2007 04:54 PM

Quote:

Originally Posted by /bin/bash (Post 2929909)
Just an idea but try blocking port 631 for all the windows machines in your firewall.
block windowsIP:631
Then they should at least get a connection refused.

Thanks for the suggestion, what I would like to have is userA who has permission to that printer to be able to print from any Windows(R) machine but userB who is denied from that printer cannot print to that printer from all Windows(R) machine. I think your suggestion will make userA not able to print since the port is blocked, am I right?

blackhole54 10-19-2007 06:16 PM

EDIT: never mind ... my brain short circuited.


All times are GMT -5. The time now is 11:55 PM.