- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- prevent user from printing
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 01:31 AM
12-19-2002 01:31 AM
How could I prevent normal user from printing to a particular print queue in the LP spooler?
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 02:44 AM
12-19-2002 02:44 AM
Re: prevent user from printing
as far as i know there is no spooler functionality to do this.
A trick could be to move your lp-command and set a script at the original place which could check the user-id. If it's a allowable user then it can give all options and the file to print on to the original lp-command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 02:57 AM
12-19-2002 02:57 AM
Re: prevent user from printing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 07:18 AM
12-19-2002 07:18 AM
Solutionhere what you can do:
# vi /var/spool/lp/interface/
and insert following:
user=$2
if [ $user = "arminfeller" ]
then
exit 0
fi
Please put this directly under the line:
#!/usr/bin/sh
This will cancel each printjob to this printer which comes from the user named arminfeller.
Best regards,
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 07:59 AM
12-19-2002 07:59 AM
Re: prevent user from printing
:-)
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 09:14 AM
12-19-2002 09:14 AM
Re: prevent user from printing
DPATH=/etc
DFILE=printers.deny
IAM=`echo $0|awk -F\. '{ print $2 }'`
if test -f $DPATH/$DFILE
then
LINE=`grep $USER $DPATH/$DFILE`
DUSER=`echo $LINE|awk '{ print $1 }'`
DPRINTER=`echo $LINE|awk '{ print $2 }'`
if test "$DPRINTER" = "$IAM"
then
echo "Access denied to $IAM"
exit 1
fi
fi
This could be added to any and all scripts in /etc/lp/interface.
Good luck
Chris