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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • 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. Solaris 10 boot process : x86/x64
  2. How to set OBP Variables from the ALOM/ILOM
  3. How to Install Oracle Solaris 11 (Text Installer)
  4. How to mount the zfs rpool while booted from CD [SPARC]
  5. LDOMs troubleshooting : guest and control domains can not talk to each other but can talk with anyone else on the network
  6. How to Use the Oracle Solaris Fast Crash Dump Feature
  7. How to Create a Datalink in Non-Global Zone from the Global Zone in Solaris 11
  8. Solaris ZFS : How to Create / Rename / Rollback / Destroy a ZFS Snapshot
  9. Solaris 11 (x86/64) : How to boot from DVD to single user mode
  10. Complete Hardware Reference : SPARC T4-1 / T4-2 / T4-4

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright