netlan

 

Netlan Technology Center, Inc.      
Search: 
netlan HOME netlan ABOUT US netlan CONTACT US netlan 212 730 5900
netlan
COURSE CALENDAR TECH TIPS NEWSLETTER CERTIFICATIONS SPECIALS TESTIMONIALS
netlan
  Tech Tips Newsletter
netlan
 

Tech Tips Newsletter Archives >

 
Sun Solaris Tech Tip - 5/30/2007
by Susanna Schmitz

RBAC bug-fix in Solaris 8 & 9

Ever wondered why an RBAC role account for printing services could not run the command
/etc/init.d/lp { start | stop} to restart the print scheduler?

Here is why and how to fix it:

The file /etc/security/exec_attr contains lists of super-user commands associated with RBAC
profiles. It also describes under which UID these programs are going to run when executed by a
role that has access to the profile.

Binary programs can run with the EUID (effective UID) of root. Shell scripts,
such as /etc/init.d/lp , need to run under the UID of root.
Since /etc/init.d/lp is a Bourne Shell script, it requires the UID to be switched to 0 when
running the command.

Change the entry for the lp script in the exec_attr file to uid=0 and your command will work
like a charm.
# vi /etc/init.d/exec_attr

Printer Management:suser:cmd:::/usr/init.d/lp: uid=0

If you are unsure if you are dealing with a binary file or a shell script, run the file command to verify.

# file /etc/init.d/lp
/etc/init.d/lp: executable Bourne-Shell script

About the Author
Susanna Schmitz is a Sun certified Solaris instructor with more than 15 years experience in the world of administering and teaching Unix. She is a Solaris courseware developer and in addition, teaches RedHat Liunx and SuSE Linux classes. Susanna brings her expertise from different production environments into all of her classes. Her teaching style focuses on in-depth concepts and many hands-on examples and lab exercises to maximize your learning experience. Her Certifications: Unix Fundamentals Sun Solaris Administration 1 (Sol 2.0 to Sol 10) Sun Solaris Administration 2 (Sol 2.0 to Sol 10) Korn Shell Programming for System Administrators
Back To Top
netlan
COURSE CALENDAR TECH TIPS NEWSLETTER CERTIFICATIONS SPECIALS TESTIMONIALS

Netlan Technology Center on LinkedIn  

CCDA, CCDP, CCIE, CCIP, CCNA, Cisco, Cisco ISO, Cisco Systems logo, and Networking Academy are registered trademarks or trademarks of Cisco Systems, Inc. and/or its affiliated in the U.S. and certain other countries. All other trademarks mentioned in this document or Web site are the property of their respective owners.

© 2007 Copyright Netlan Technology Center, 2003. All right Reserved. All trademarks in these web pages are of their respective owners, Netlan Technology Center is an authorized training partner of Microsoft, Novell, SuSE Linux, Citrix, Lotus, and WebSphere.