LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2007, 05:50 PM   #1
I_like_TUX
Member
 
Registered: Sep 2007
Distribution: Fedora 7, Edubuntu
Posts: 35

Rep: Reputation: 15
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.
 
Old 10-19-2007, 01:00 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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.
 
Old 10-19-2007, 04:54 PM   #3
I_like_TUX
Member
 
Registered: Sep 2007
Distribution: Fedora 7, Edubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by /bin/bash View Post
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?
 
Old 10-19-2007, 06:16 PM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
EDIT: never mind ... my brain short circuited.

Last edited by blackhole54; 10-19-2007 at 06:18 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
premission denied message tribeone Linux - Software 7 12-02-2006 03:37 AM
audit cupsd denied message spooon Fedora 3 07-15-2006 09:25 PM
C program to see user log on in system and print user with real user name also naveen245 Programming 2 12-21-2005 12:53 AM
permission denied message at login p_test Linux - Newbie 2 10-07-2004 02:53 PM
show error message screen on the posts uttamsaxena LQ Suggestions & Feedback 4 07-08-2002 07:01 AM


All times are GMT -5. The time now is 09:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration