- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: capability to disable/enable 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
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
09-23-2004 02:43 AM
09-23-2004 02:43 AM
I wonder if a regular user
a. has
b. can have
c. should have
a capability to disable/enable printers on a Unix server?
I figured that a user can run an lpstat.
Elena.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 02:51 AM
09-23-2004 02:51 AM
Re: capability to disable/enable printer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 02:52 AM
09-23-2004 02:52 AM
Re: capability to disable/enable printer
Looking at /usr/bin/enable|disable, we see;
-r-sr-xr-x 1 lp bin 24576 Nov 14 2000 /usr/bin/disable
-r-sr-xr-x 1 lp bin 20480 Nov 14 2000 /usr/bin/enable
Through the use of the setuid bit on the permissions, anyone who runs these commands is effectively seen as the user "lp", which owns the printing subsystem.
You can prevent users from enabling/disabling printers by using
chmod o-x /usr/bin/disable /usr/bin/enable
Then, when the users try to enable/disable the printers; they see
/usr/bin/sh: disable: Execute permission denied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 03:03 AM
09-23-2004 03:03 AM
Solutiona. yes
b. see a above
c. in my opinion - no
I can't imagine a reason where a normal user would need to disable/enable printers. If they have an issue with the printer, I think they should be working with support and not fiddling around themselves.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 03:14 AM
09-23-2004 03:14 AM
Re: capability to disable/enable printer
Elena.