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.
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.
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.
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:
pfexec env usermod -P Operator sysopr
Or find 'usermod' in /usr/ directory and type the full path.
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