- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Running lpsched as non-root user
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
10-05-2009 02:41 AM
10-05-2009 02:41 AM
Running lpsched as non-root user
I wanted to try allowing users other than root, ability to run lpsched & lpshut.
If I change the persmissions on those executables, & run them as a different user, I get the message: "/usr/sbin/lpsched: this command for use only by LP Administrators".
Why is this? Is there something hardcoded in those programs that only allows root to run them?
I will probably use SUDO, to get round this. Just curious to know the mechanics of these programs refusing to run by other users.
TIA
Johnny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 02:51 AM
10-05-2009 02:51 AM
Re: Running lpsched as non-root user
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 04:02 AM
10-05-2009 04:02 AM
Re: Running lpsched as non-root user
On the other hand, lpsched must be able to access all the print jobs. It must also be able to access all printers, which can mean direct serial/parallel port access for local printers, and access to low-numbered network ports for (some) remote printers.
Some lpd servers will refuse the print job unless the source-side port number is less than 1024: this is a historical artifact that makes sense only in Unix-only networks where all servers are under the same administration.
In a large central print server, shutting down the print scheduler can stop many print jobs. When it restarts, any interrupted print jobs are restarted from beginning: with a large print job, this can mean a lot of unneeded duplicate pages.
At least in USA, a company may have some printers dedicated to printing paychecks. A regular Joe User cannot be allowed to interfere with those jobs in any way.
The LP administrator is expected to be aware of the "big picture" and not stop and restart the scheduler for everyone just because one user's printout of the day's Dilbert seems to be hung.
As Pete said, HP-UX includes the tools to allow regular users to stop and start lpsched if you wish to do so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 05:01 AM
10-05-2009 05:01 AM
Re: Running lpsched as non-root user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 05:16 AM
10-05-2009 05:16 AM
Re: Running lpsched as non-root user
sam -r is good, and will work normally, probably even on 11.31 systems where sam was "replaced" by smh. Even there much of whats under the hood is still sam.
Another solution is sudo.
Search http://software.hp.com for Internet Express and you can click in and download sudo.
SEP
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
10-05-2009 10:44 AM
10-05-2009 10:44 AM
Re: Running lpsched as non-root user
another choice could be sudo, but the SAM is the easiest to configure...