Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need non-root user to cancel print job

Status
Not open for further replies.

dnelson24

IS-IT--Management
Apr 1, 2002
59
US
I would like to be able to have a non-root user login to the system, cancel a print job or entire queue for that matter, and be logged out after canceling the print job/queue.

My thought: is there a way to create a generic login....attach/or run a script within say the .profile that prompts the user for their print queue, in my case HP01, HP02, etc., and issue a "cancel HP01" based on their input of HP01. Once this is executed they would select an item 3.)Exit or type EXIT and they would be logged out. Only draw back I see is that they would be able to CTRL-C out of the script and still be logged in???? Any ideas?

Thanks
David
 
The easiest way to allow a user to cancel jobs or enable queues is to make them a memeber of the printq group. This will give them authority to cancel jobs sent by anyone. I just tested with a job sent by root and canceled by a user who is in the system and printq groups. Then you don't need any setuid stuff.
 
Just so that I do it the correct way, can you give me details on how to change the user to that group printq or system or both?
Thanks in advance!
David
 
invoke smit>security&users>users>change show characteristics

From there you can change the primary group.

 
Or alternately

smitty group
Change / Show Characteristics of a Group
Press F4 for a list of groups or enter printq
User List
Press F4 for a list of users or enter that particular users name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top