- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- restrict access to a printer
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
11-05-2001 12:05 PM
11-05-2001 12:05 PM
restrict access to a printer
Can access to a printer be restricted to specific users?
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 12:20 PM
11-05-2001 12:20 PM
Re: restrict access to a printer
Some versions of UNIX have an lpadmin -p printer -u allow:user1,user2 (or -u deny:user1,user) option that does just what you want but HP-UX is not among them. However, it should be possible via a little scripting to rename /usr/bin/lp to /usr/bin/lp2 and have /usr/bin/lp do the user list lookups and then call /usr/bin/lp2.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 12:39 PM
11-05-2001 12:39 PM
Re: restrict access to a printer
There is no such provision
for the native LP commands
in HP-ux. You can write
a wrapper for the lp command
which will check for users
before proceeding to execute
the lp command
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 01:04 PM
11-05-2001 01:04 PM
Re: restrict access to a printer
my 2cents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 07:16 AM
11-06-2001 07:16 AM
Re: restrict access to a printer
Thanks for the replies. S.K., I believe that should be /var/spool/lp/interface directory.
All good ideas that can work. The basic problem is that users don't always choose the printer they should. Wish I could upgrade them so that they would.
After thinking about it further, there's a problem with the whole printer restriction issue: processing is performed to prepare print data before it is sent to lp. For example, our application (Mfg/Pro) has printer queues defined which in turn call lp. Long running reports would generate a print file that would be sent to a printer that wouldn't allow it to print. Even if I identify the spooled print file, I have no way of knowing what printer the user really should be using. Scripting to prompt for another printer choice would be a maintenance issue that I don't believe is worth the effort. I might could notify the user that his output could not be printed but he'd have to re-run the report.
In this case, I really need for the application to do pre-processing verification of the user's access to the printer specified. Oh well.
Thanks,
Darrell