• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to delegate SMF management to a non-root user in Solaris

By admin

The post discusses the steps to delegate the management of an SMF service to a non-root user. For example, a non-root user wants to manage the SMF service for tomcat. Follow the steps below to delegate tomcat service management to a non-root user.

Delegate SMF management to non-root user

1. Add the following entry to file /etc/security/auth_attr

solaris.smf.value.tomcat:::Value tomcat Service for user01::
solaris.smf.manage.tomcat:::Manage tomcat Service for user01::

2. Add general/value_authorization and general/action_authorization to the properties of the SMF service:

# svccfg -s application/tomcat setprop general/value_authorization = astring: solaris.smf.value.tomcat
# svccfg -s application/tomcat setprop general/action_authorization = astring: solaris.smf.manage.tomcat

3. Refresh the tomcat service.

# svcadm refresh application/tomcat

4. Add solaris.smf.value.tomcat authorization to user user01.

# usermod -A solaris.smf.manage.tomcat,solaris.smf.value.tomcat user01

5. Verify if you can now manage the tomcat service with the user user01.

Filed Under: Solaris

Some more articles you might also be interested in …

  1. The ultimate Solaris Volume Manager (SVM) interview questions
  2. How to Collect a Forced Crash Dump of a Hanging Solaris Guest LDom
  3. How to remove a failed disk using luxadm and cfgadm
  4. How to prevent non-root user from creating crontab entry
  5. How to verify non-global solaris zone is installed
  6. What are Oracle Solaris 11 Installation Methods
  7. Complete Hardware Reference : SPARC T3-1 / T3-2 / T3-4
  8. Performing Network Diagnostics in Solaris 11 with “network-monitor”
  9. Examples of adding static routes in Solaris
  10. Solaris : How to automate scp transfer (using passwordless ssh)

You May Also Like

Primary Sidebar

Recent Posts

  • Oracle Database – Configuring Secure Application Roles
  • Extend rule sets by using factors in Oracle Database Vault
  • What are Command Rules in oracle Database
  • Using Rule Sets in Oracle Database Vault
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary