The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cancel printer queue permission KhawHL SUN Solaris 1 05-04-2009 11:47 PM
Root privilege for user nicktrix SUN Solaris 5 04-16-2009 06:49 AM
Print to ps2pdf print queue Sean_69 SUN Solaris 2 10-22-2007 12:00 PM
Print to a ps2pdf print queue. Sean_69 UNIX for Dummies Questions & Answers 1 10-22-2007 11:58 AM
Write privilege for user here2learn UNIX for Dummies Questions & Answers 3 11-13-2003 08:53 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-25-2009
KhawHL KhawHL is offline
Registered User
  
 

Join Date: May 2003
Posts: 50
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 (permalink)  
Old 07-02-2009
l_vbosch l_vbosch is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 9
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 (permalink)  
Old 07-05-2009
KhawHL KhawHL is offline
Registered User
  
 

Join Date: May 2003
Posts: 50
Quote:
Originally Posted by l_vbosch View Post
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 (permalink)  
Old 07-20-2009
l_vbosch l_vbosch is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 9
Quote:
Originally Posted by KhawHL View Post
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 (permalink)  
Old 07-26-2009
KhawHL KhawHL is offline
Registered User
  
 

Join Date: May 2003
Posts: 50
Thanks for the reply.

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
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:40 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0