what privilege to assign for user to cancel or disable print queue?


 
Thread Tools Search this Thread
Operating Systems Solaris what privilege to assign for user to cancel or disable print queue?
# 1  
Old 06-25-2009
what privilege to assign for user to cancel or disable print queue?

OS Version: Sun Solaris version 9

Other than root, we need operation to manage printer queue by using following command:

lprm -P
cancel
enable/disable

What privilege should be given?

Pls advise.
Thank you.
# 2  
Old 07-02-2009
You can modify the given logins and assign them the Operator profile:

pfexec usermod -P Operator <login>

Where <login> is your usernames' login.

An alternative is to install sudo as in a regular Unix and configure the sudoers file to allow some users the execution of that binary files.

Regards,
Leandro.
# 3  
Old 07-05-2009
Quote:
Originally Posted by l_vbosch
You can modify the given logins and assign them the Operator profile:

pfexec usermod -P Operator <login>

Where <login> is your usernames' login.

Getting following error.. will try to search for this err code..

# pfexec usermod -P Operator sysopr
usermod: can't get real path
# 4  
Old 07-20-2009
Quote:
Originally Posted by KhawHL
Getting following error.. will try to search for this err code..

# pfexec usermod -P Operator sysopr
usermod: can't get real path

The shell isn't finding the real path to the command. Try:

Code:
pfexec env usermod -P Operator sysopr


Or find 'usermod' in /usr/ directory and type the full path.
# 5  
Old 07-26-2009
Thanks for the reply. Smilie

After issue following command, no error message shown.
/usr/bin/pfexec /usr/bin/env /usr/sbin/usermod -P Operator sysopr

However, still encountered following error. How can I confirm the above command execute successfully?

hostname:sysopr> lprm -P ans_p5215 7918
ans_p5215-7918: permission denied
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Is there an easy way for a moderator to cancel a duplicate account (other than banning the user)?

In the thread https://www.unix.com/shell-programming-and-scripting/254651-i-tried-add-permenat-alais-bashrc.html#post302932057 user Joshua Smith made his 1st and only post. Later in that thread, user jtsmith90 continued the conversation and said he had forgotten that he already had an account. ... (3 Replies)
Discussion started by: Don Cragun
3 Replies

2. Shell Programming and Scripting

Create user with different privilege

Hi , I want to create 3 different user with below privilege in Solaris and Linux. 1) Read Only 2)Read and Write Only 3) Admin user Can you guys help me on this . (3 Replies)
Discussion started by: Naveen Pathak
3 Replies

3. UNIX for Dummies Questions & Answers

Cannot cancel a print

Hi Everyone, I am trying to cancel a print. I am logged on as the user of the print and when I use the command 'cancel print_job' I get the message 'print_job: not authorized' I have cancelled other prints in the queue, but this particular job in the queue cannot delete. I even logged on as... (5 Replies)
Discussion started by: Scarlet
5 Replies

4. AIX

sudo - User privilege specification

I am planning to implement sudo for users. Under , it looks I have to put the users who need to have sudo access: What are the recommended for users? I don't think I need to give the ALL privilege (i.e ) to AIX users. I'd like to know the commonly used privilege specification for sudo... (9 Replies)
Discussion started by: Daniel Gate
9 Replies

5. UNIX for Advanced & Expert Users

[Solved] remove all print jobs from a print queue

Hello, Sometimes i need to clear all the jobs of a print queue and it is really annoying to cancel one by one. Is there a way to cancel all print jobs for a specific print queue with a single command instead of cancelling them one by one? My AIX system is 5.3 Thank you for your attention (2 Replies)
Discussion started by: omonoiatis9
2 Replies

6. AIX

User Privilege

How to assign superuser privilege to an ordinary user temporarily (1 Reply)
Discussion started by: udtyuvaraj
1 Replies

7. Solaris

Cancel printer queue permission

How to assign permission for a user to cancel unix printer queue other than root? lprm -P and cancel? How to chmod for /bin/cancel to -rws-x-x --> s means? Please help. Thank you. (1 Reply)
Discussion started by: KhawHL
1 Replies

8. Solaris

Root privilege for user

Can anyone please tell how to give root privilege to a normal user in solaris 10? (5 Replies)
Discussion started by: nicktrix
5 Replies

9. AIX

[Help] Give privilege to an ordinary user

I'm trying to give a non-root user the right to start IBM HTTP Server, the web server is listening on port 80, but for AIX, ports under 1024 are privilege ports which can be used only by root. /usr/IBMIHS/bin# ./apachectl start (13)Permission denied: make_sock: could not bind to address :::80... (1 Reply)
Discussion started by: ibmer414
1 Replies

10. UNIX for Dummies Questions & Answers

Write privilege for user

Is it possible to grant write privileges to a user on a directory with out having to add the user to a group or make the user the owner of the directory? My background is in Windows and in Windows you can grant specific privileges to a user without having to put the user in a group or making the... (3 Replies)
Discussion started by: here2learn
3 Replies
Login or Register to Ask a Question