- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cancel non-owned print jobs
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
Discussions
Discussions
Forums
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
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
тАО07-18-2002 07:43 AM
тАО07-18-2002 07:43 AM
My problem is I need to allow user B to cancel a print queue, using cancel -e. I have tried creating a script and a C program and did chmod 4755 on those. Either way, the program still comes back with "must be root...". Why doesn't this work? Is there another way to do what I need to do?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 07:52 AM
тАО07-18-2002 07:52 AM
Re: cancel non-owned print jobs
Cheers!
Cheryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 07:57 AM
тАО07-18-2002 07:57 AM
Re: cancel non-owned print jobs
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90701/B2355-90701_top.html&con=/hpux/onlinedocs/B2355-90701/00/00/25-con.html&toc=/hpux/onlinedocs/B2355-90701/00/00/25-toc.html&searchterms=restricted%7csam&queryid=20020718-090516
Or try this doc search site (I prefer not to navigate the www.docs.hp.com menus):
http://www.docs.hp.com/cgi-bin/otsearch/hpsearch
Use +restricted +sam in the search prompt.
The first link is the match.
Cheryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 07:59 AM
тАО07-18-2002 07:59 AM
SolutionI do exactly that using a program I have used for many years. In the past couple of years, I have even added some options that allow it to be called from some CGI code so that users can cancel their own jobs (or if members of a priviliged group) can cancel anyone's print job from a webpage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 08:06 AM
тАО07-18-2002 08:06 AM
Re: cancel non-owned print jobs
# sam -r
You will see "Load User Privleges" dislog box. In here select "userB"
=> Choose "Printers & Plotters"
=> From the menu Actions->Enable
=> Since you want "userB" to be able to cancel print requests you only need to "enable"..
Printers&Plotters->LP spooler->PrintRequests
=> From menu do, Actions->SaveUser Privileges
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 08:41 AM
тАО07-18-2002 08:41 AM
Re: cancel non-owned print jobs
Thanks all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 08:46 AM
тАО07-18-2002 08:46 AM
Re: cancel non-owned print jobs
In general, 'setuid' scripts will work *if* you explicitly declare the Posix shell interpreter:
#!/usr/bin/sh
#...remainder of script
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 09:11 AM
тАО07-18-2002 09:11 AM
Re: cancel non-owned print jobs
From the command line I unset the display:
# unset DISPLAY
# sam
Seems to work quicker than waiting for fancy gui screens. But that could be my imagination.
Cheryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 10:05 AM
тАО07-18-2002 10:05 AM
Re: cancel non-owned print jobs
Instead, look at having the users login as lp (you'll have to modify the lp user to provide a password and $HOME directory). Now users can su to lp, cancel their job and leave without compromising root's privileges.
And yes, the character mode for sam (and swinstall, etc) all run faster than their GUI versions. In fact, when you use a smart HP termnal, the function keys are more than twice as fast than mousing around on the windows. I use the character mode so much that I created an alias:
alias samc="(unset DISPLAY;sam)"
which leaves the DISPLAY set in the login shell but unsets it just for SAM.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 10:49 AM
тАО07-18-2002 10:49 AM
Re: cancel non-owned print jobs
http://hpux.cs.utah.edu/
sudo allows you to specify who can use root (or another userid): anything from "user A can do any root command anywhere" to "user A can run command B as root, but only on machine C."
sudo has been picked over by many people during its lifetime and AFAIK is free of exploits (assuming you do write your configuration file correctly).
You can also set up a print queue (done with JetAdmin, at least) such that anyone can cancel jobs in the queue.